22,209
社区成员
发帖
与我相关
我的任务
分享
declare @v nvarchar(max)
set @v=space(8000)
set @v=@v+space(3456)
select len(@v)
/*
--------------------
11456
(1 行受影响)
*/
declare @article table(content nvarchar(max))
insert into @article select cast(REPLICATE('A',4000) as nvarchar(max))+REPLICATE('B',4000)
declare @v nvarchar(max)
select @v=(content) from @article
select len(@v)
/*
8000
*/