I have a table with a clob column. Searching based on the clob column content needs to be performed. However
select * from aTable where aClobColumn = \'value\';>
So do not. Because if you want to compare the data - then it may be a situation where one value: NULL
and the second EMPTY_CLOB
And it is for this method different matter!
It returns -1, although in terms of data - both values should not contain.
Would be correct:
dbms_lob.compare (NVL (AUDIT_PAYLOAD_TEXT_DEC, Empty_Clob ()), NVL (AUDIT_PAYLOAD_TEXT, Empty_Clob ()))