Connor and Chris will both be at AI World from October 12 to October 17 , the premier Oracle conference of 2025. If you're in Vegas, please come say Hi or pop into our sessions
Thanks for the question.
Asked: November 25, 2016 - 10:55 am UTC
Last updated: November 25, 2016 - 2:00 pm UTC
Version: 12.2.0.1
Viewed 1000+ times
SQL> create table "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678" ( 2 x int 3 ); Table created. SQL> SQL> declare 2 l user_tables.table_name%type; 3 begin 4 select table_name into l from user_tables 5 where table_name like '1234%'; 6 7 dbms_output.put_line(length(l)); 8 end; 9 / 128 PL/SQL procedure successfully completed.
SQL> declare 2 l user_tables.table_name%type; 3 begin 4 select '"' || owner || '"."' || table_name || '"' 5 into l from all_tables 6 where table_name like '1234%'; 7 8 dbms_output.put_line(length(l)); 9 end; 10 / declare * ERROR at line 1: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Check out more PL/SQL tutorials on our LiveSQL tool.
PL/SQL reference manual from the Oracle documentation library