My understanding is Long data type can store the actual string(chars), while Long raw data type stores the binary values of the string(chars). Is it right? Can a table have only one long type column?
My understanding is Long data type can store the actual string(chars), while Long raw
Share
The data types are described in the documentation;
LONGis explained here (or the 11gR2 version):And
LONG RAWis here:So a
RAWorLONG RAWcan contain the binary representation of characters, but won’t be subject to character set conversion etc. so probably isn’t all that useful for that; an can contain any other binary data – anything that isn’t supposed to represent text.From the same
LONGsection:However,
LONGis deprecated in favour ofLOB(CLOBorNCLOBfor text,BLOBfor everything else), so you shouldn’t be using them for new work, and should at least be considering replacing any you already have. Again from that same section onLONG:This documentation on migrating from
LONGtoLOBmight be of interest.