Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: where is the error?
Excuse me but the character representation of a rowid contains letters
A-Z, and a-z, digits 0-9, and a couple of puncuation characters. Only
digits may appear in a character value for it to be successfully
converted to a number.
UT1 > select to_char(rowid) from sys.dual; select to_char(rowid) from sys.dual
*
ERROR at line 1:
ORA-00932: inconsistent datatypes: expected NUMBER got ROWID
UT1 > select rowid from sys.dual;
ROWID
UT1 > select rowidtochar(rowid) from sys.dual;
ROWIDTOCHAR(ROWID)
The above line is obviously not a valid number. Perhaps what you want is this
UT1 > select chartorowid('AAAADDAABAAAALxAAA') from sys.dual;
CHARTOROWID('AAAAD
HTH -- Mark D Powell -- Received on Fri Feb 25 2005 - 08:53:11 CST