When you use a LONG RAW, you intend to store large data such as sound, image etc., but NVL can only make a substitute for a character or a number, definitely not for this datatype.
I got this from Metalink:
Normal SQL functions do not operate on raws. Use UTL_RAW package to operate on raw columns. To install the package run utlraw.sql script. Also go through utlraw.sql script.
Do you really need to use a LONG? If your data is 4000 characters or less, you could use a VARCHAR2.
If your data is longer than 4000 characters, try using a clob instead of a LONG.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.