Oracle 10g: column is blank, but is not null or an empty string Oracle 10g: column is blank, but is not null or an empty string sql sql

Oracle 10g: column is blank, but is not null or an empty string


Issue this query:

SELECT column, DUMP(column, 1016)FROM table

It'll show the exact contents.

Related: Oracle does not allow empty strings; they're silently converted to NULL.


Maybe the column contains only spaces?

Did you try

select * from table where trim(column) is null


Oracle's got a basically permanent annoyance that empty strings are treated as null. However, are you sure that's an empty string? It could be an otherwise invisible character, such as a space or tab/linebreak/linefeed/etc... What does the string length show when you do select length(column) from table?