SELECT [SKULL].[dbo].[reports].[idnumber], [SKULL].[dbo].[reports].[subid]
FROM [SKULL].[dbo].[reports]
WHERE reportColumn = (SELECT DISTINCT(reportColumn)
FROM [SKULL].[dbo].[reports]
WHERE [SKULL].[dbo].reports.reportColumn
LIKE '%someword%')
我收到一条错误消息说
Msg 512, Level 16, State 1, Line 2
Subquery returned more than 1 value.
This is not permitted when the subquery follows =, !=, <, <= , >, >= or
when the subquery is used as an expression.
谢谢。