long类型字段a,直接update t set a='xx' where id=1时,如果字符串长度超过4000会报错
解决方法:
declare
str long := 'xxx';
begin
update t a = str where id=1;
end;
本文介绍了一种解决在更新数据库中Long类型字段时遇到的字符串长度超限问题的方法。通过使用变量和过程来避免直接更新长字符串,从而绕过长度限制。
long类型字段a,直接update t set a='xx' where id=1时,如果字符串长度超过4000会报错
解决方法:
declare
str long := 'xxx';
begin
update t a = str where id=1;
end;
333
509

被折叠的 条评论
为什么被折叠?