DECLARE @sql nvarchar(500); DECLARE @inStr nvarchar(50); SET @inStr='''条件1'',''条件2'''; set @sql='SELECT * FROM table WHERE field1 IN ('+@inStr+')'; --PRINT @sql; EXEC(@sql);