多个表关联的查询语句

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

猜你喜欢

转载自www.cnblogs.com/hongmaju/p/9252185.html