我想将"'765','76','70','70','80','82','11'"
插入sql-server中的nvarchar
列。怎么可能?
答案 0 :(得分:1)
你走了:
DECLARE @N NVARCHAR(MAX);
SET @N = '''765'',''76'',''70'',''70'',''80'',''82'',''11''';
SELECT @N AS Result;
结果:
+-------------------------------------+
| Result |
+-------------------------------------+
| '765','76','70','70','80','82','11' |
+-------------------------------------+