【发布时间】:2020-06-04 02:54:33
【问题描述】:
在以下示例中,txt 列长度显示不正确。
CREATE TABLE dbo.test
(
Id int IDENTITY,
txt varchar(max)
);
insert into test(txt) select REPLICATE('0',8000);
insert into test(txt) select REPLICATE('00',8000);
select id, len(txt) from test;
drop table test;
两者的结果都是 8000。
有没有人可以帮忙?
【问题讨论】:
标签: sql-server max varchar