我有两个这样的查询:
查询 #1:
SELECT *
FROM dbo.Products
WHERE CAST(ID AS VARCHAR) IN ('6', '8', '9', '10', '12', '14', '110', '106')
查询 #2:
SELECT *
FROM dbo.Products
WHERE CAST(ID AS VARCHAR) IN (SELECT ('6'', ''8'', ''9'', ''10'', ''12'', ''14'', ''110'', ''106'))
为什么第二个查询不返回任何行?当第一个查询返回一些行时。