Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Determining char/varchar2 column length
Folks,
Is there a single query or builtin PL/SQL routine that allows one to calculate the (character) length of a column that works for both 8i and 9i?
For 8i, character length = data_length
For 9i, character length = char_length (which /may/ equal data_length depending on the value of char_used)
Question, again, is whether there's a single query that can be run against both databases to accurately determine the length of a character-based column.
Thanks,
Adam