📜  sqlstate[imssp]:查询的活动结果不包含任何字段. - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:25.785000             🧑  作者: Mango

代码示例1
with (SELECT afield INTO #temptable FROM atable 
WHERE anotherfield = 'somevalue') AS temptable;

SELECT afield,anotherfield,onemorefield FROM atable 
where afield NOT IN (SELECT * FROM temptable);