17,377
社区成员
发帖
与我相关
我的任务
分享
select * from tableA where caid=( select caid from tableB where wtforagent<=20) order by bgtime asc;
select * from tableA t where exists
( select 1 from tableB where t.caid=caid and wtforagent<=20)
order by bgtime asc;
select * from tableA t where exists
( select 1 from tableB where t.caid=caid and wtforagent<=20)
order by bgtime asc;
select * from tableA where caid in
( select caid from tableB where wtforagent<=20)
order by bgtime asc;
select * from tableA t where exists( select 1 from tableB where t.caid=caid wtforagent<=20) order by bgtime asc;
select * from tableA where caid in( select caid from tableB where wtforagent<=20) order by bgtime asc;