标签:参数 header print declare div HERE cut class out
DECLARE @GUIDList NVARCHAR(1000),@GUID NVARCHAR(1000),@sql NVARCHAR(1000) SET @GUIDList = ‘CEE720E77B384D00BAD76782B7F94234,A062240DCF1841A9B7075D44FA800E4F‘ SET @GUID = ‘‘‘‘ + REPLACE(@GUIDList,‘,‘,‘‘‘,‘‘‘) + ‘‘‘‘ SET @sql = N‘SELECT * FROM [Output].[tblOutput_Interface0004_Header] WHERE GUID IN (‘+@GUID+‘)‘ PRINT (@sql) EXEC sp_executesql @sql
需要 nvarchar 类型
标签:参数 header print declare div HERE cut class out
原文地址:https://www.cnblogs.com/carlvine/p/9367533.html