SQL> SQL> select utl_raw.compare( '01050304', '01020304' ) from dual; UTL_RAW.COMPARE('01050304','01020304') -------------------------------------- 2 1 row selected. SQL> --