选择子查询

时间:2018-07-26 12:46:46

标签: sql select subquery

我如何使该子工作正常?

Select a.group IN (select b.ref from b) from a

1 个答案:

答案 0 :(得分:0)

您似乎想要:

select a.*
from a 
where exists (select 1 from b where b.ref = a.group);