Purpose
This function converts a ROWID value to a value of the NVARCHAR2 data type.
Syntax
ROWIDTONCHAR(rowid)
Parameters
The rowid parameter is a value of the ROWID data type.
Return type
NVARCHAR2
Examples
Convert the ROWID values of table tbl1 to values of the NVARCHAR2 data type and return the corresponding byte length.
obclient> SELECT LENGTHB(ROWIDTONCHAR(ROWID)),LENGTHB(ROWID),ROWIDTONCHAR(ROWID) FROM tbl1;
+------------------------------+----------------+---------------------+
| LENGTHB(ROWIDTONCHAR(ROWID)) | LENGTHB(ROWID) | ROWIDTONCHAR(ROWID) |
+------------------------------+----------------+---------------------+
| 34 | 17 | *AAIKAQAAAAAAAAA= |
| 34 | 17 | *AAIKAgAAAAAAAAA= |
| 34 | 17 | *AAIKAwAAAAAAAAA= |
+------------------------------+----------------+---------------------+
3 rows in set
