I am trying to get rows from an archive database for populating a test environment DB. I need rows where a specific field called "AUDIT_LOG" which is CLOB cannot be empty null.
I have tried the following simple select statements but I get
ORA-00932: inconsistent datatypes: expected - got CLOB
The statements I have tried:
SELECT * FROM SIEBEL.S_AUDIT_ITEM WHERE AUDIT_LOG = ''
SELECT * FROM SIEBEL.S_AUDIT_ITEM WHERE AUDIT_LOG != NULL
SELECT * FROM SIEBEL.S_AUDIT_ITEM WHERE AUDIT_LOG = 0
Does a NULL in CLOB equate to an empty character string. I have a feeling maybe length can be used for the column.
Thanks