当前位置:网站首页>Ora-01741 and ora-01704

Ora-01741 and ora-01704

2022-07-07 23:37:00 Rain fish in summer

ORA-01741 and ORA-01704

 Insert picture description here
 Insert picture description here

reason

ORA-01741: Illegal zero length identifier
ORA-01704: The string text is too long
oralce Of clob Caused by too long field

solve

sql Just write the following sentence

declare
a_clob clob:=TO_CLOB('1111')||TO_CLOB('22222');
begin
insert into  surface (clob Field ) values (a_clob);
end;

Knowledge points used

  1. || Concatenate characters
  2. TO_CLOB function
  3. Define variables first
原网站

版权声明
本文为[Rain fish in summer]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130557396285.html