它对SQL来说太长了?

时间:2014-07-29 13:16:51

标签: sql-server-2012

Update table_name set [xml] = 'some 4322 characters xml' where id_a = 1 and id_b = 123

但我一直收到错误,

enter image description here

表格的XML列是ntext数据类型

1 个答案:

答案 0 :(得分:0)

通过先将所有xml放入变量然后设置

来解决所有问题
> Declare @doc varchar(6000) = N'<example>.....</example>' Update
> TableName Set Columnn = @doc