Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> convert binary of hex to NVARCHAR2 in 8i
Does anyone know is there a sql conversion function which converts a
string of hex into NVARCHAR2 in 8i?
Further, I have a table which has a column('regionc') defined in NVARCHAR2(40), when the function rawtohex applies to the column('regionc'), a set of hex value is returned. However, it does not seen to be a 2-byte hex representation. Also when I try to reverse the function using the hextoraw, it cannot displayed the original string as in NVARCHAR2.
select pkey, regionc, rawtohex('regionc'), TRANSLATE(hextoraw('726567696F6E63') USING NCHAR_CS) from table1
Please advise. Am I doing correctly?
Thanks
Patrick
Received on Mon Dec 17 2001 - 22:33:12 CST