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, Derek.
Asked: March 20, 2019 - 8:41 pm UTC
Last updated: March 22, 2019 - 11:35 am UTC
Version: 12.1
Viewed 10K+ times! This question is
set serveroutput on; declare c varchar2 (100); a number; begin for i in ( select ekd0756_current_value from prdusrvi.EKD0756 where record_id =2292 ) loop for j in 1..length(i.ekd0756_current_value) loop c := substr(i.ekd0756_current_value,j,1); a := ascii (c); dbms_output.put_line (j || '|' || c || '| ' || a); end loop; dbms_output.put_line ('----------------------------------'); end loop; end; /
create table t ( c1 varchar2(10) ); insert into t values ( chr(49819) ); insert into t values ( chr(10) ); select c1, ascii ( c1 ), dump ( c1 ) from t; C1 ASCII(C1) DUMP(C1) ? 49819 Typ=1 Len=2: 194,155 10 Typ=1 Len=1: 10
The Oracle documentation contains a complete SQL reference.