1. 程式人生 > >多個表關聯的查詢語句

多個表關聯的查詢語句

name where sele rom left join nbsp ID 語句 關聯

select a.*,(select table1 .name from table1 where table1.id=a.table1ID) from table as a

select a.*,b.* from table as a,table1 as b where a b.id=a.table1ID

select a.* ,b.* from table as a left join table1 as b on b.id=a.table1ID

多個表關聯的查詢語句