This Oracle tutorial explains how to use the Oracle/PLSQL CHARTOROWID function with syntax and examples.
The Oracle/PLSQL CHARTOROWID function converts a char, varchar2, nchar, or nvarchar2 to a rowid.
The syntax for the CHARTOROWID function in Oracle/PLSQL is:
The value to convert to a rowid.
The CHARTOROWID function returns a rowid. The rowid is formatted as follows:
where:
BBBBBBB is the block in the database file. RRRR is the row in the block. FFFFF is the database file.
The CHARTOROWID function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle CHARTOROWID function examples and explore how to use the CHARTOROWID function in Oracle/PLSQL.
For example:
This would return a unique row from the suppliers table.