CHARTOROWID is one of the vital Conversion functions of Oracle. It is used to convert a char, nchar, varchar2, or nvarchar2 to a rowid. The CHARTOROWID function is supported in the various versions of the Oracle/PLSQL, including, Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i and Oracle 8i.
Syntax:
CHARTOROWID ( value )
Parameters:
value: It is used to specify the value to be converted.
Example :
select * from students where rowid = CHARTOROWID('AAABoqAADAAAAwPAAA'); |
Explanation:
The returned value will be a unique row from the students table.