如何选择内部选择语句未选择的记录?

问题描述 投票:1回答:2
select pid from table where pid is not (select top 10 pid from table1)

上面的正确语法是什么?

sql sql-server
2个回答
2
投票
select pid from table where pid not in (select top 10 pid from table1)

2
投票

not in,而不是is not

© www.soinside.com 2019 - 2024. All rights reserved.