多个表关联的查询语句

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

posted @ 2018-07-02 08:37  HongMaJu  阅读(716)  评论(0编辑  收藏  举报