union
select count(*) where fid in select id where fid = 2
union
select count(*) where fid in select id where fid in select id where fid = 2
mysql1
select 1.lid,1.lname,GROUP_CONCAT(2.sname) from 1 left join 2 on 2.lid=1.lid
oracle
1
select 1.lid,1.lname,WM_CONCAT(2.sname) from 1 left join 2 on 2.lid=1.lid
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)