SQL where子句检查是否所有选定的列值都在子查询中select

问题描述 投票:0回答:1

下面的选择概念可以转换为sql select吗?

select S_ID from table1 where all S_ID in (select S_ID from table2)
sql sql-server
1个回答
0
投票

只需要删除全部

select S_ID from table1 where S_ID in (select S_ID from table2)
© www.soinside.com 2019 - 2024. All rights reserved.