时间:2021-07-01 10:21:17 帮助过:19人阅读
select * from A left join B on A.id=B.id;
select * from A,B where A.id=B.id
SELECT A.id AS `aid` , A.name AS aname , B.p_id AS pid , B.id AS bid , B.session AS bsession FROM A,B WHERE A.aid=B.bid
select * from A left join B on A.id=B.id;
selact * from a left join (select * from b where session='aaa') t on a.id=t.id