sql联结
1.内联结(等值联结)
select vend_name,prod_name,prod_price
from vendors,products
where vendors.vend_id = products.vend_id
等效于
select vend_name,prod_name,prod_price
from vendors inner join products
on vendors.vend_id = products.vend_id
2.左联结
select customers.cust_id,orders.order_num
from customers left outer join orders
on customers.cust_id = orders.cust_id
浙公网安备 33010602011771号