【发布时间】:2020-09-24 12:08:57
【问题描述】:
所以这很简单:
Select Val from MyTable where Val not in ('100','200','300'....)
-
如何编写查询以便从列表中选择值。例如,我该如何做类似
Select * from ('100','200','300'....)这样的输出:100 200 300 ... -
此外,我该如何做类似
select * from ('100','200','300'....) that are not in MyTable.Val列的事情?
【问题讨论】:
-
Val是字符串类型('100')还是数字类型(100)?
标签: sql sql-server tsql subquery unpivot