A string of zero length is treated as zero, and you cannot compare zeros through (c) equality in Oracle, since they are processed in a special way.
Link to Doc: NULLS in conditions
Hence this one is not expected to work:
Select 'do' from dual where trim(' ') = ''
Try this instead:
10:39:58 SYSTEM@dwh-prod > select * from dual where trim(' ') is null 10:40:02 2 / D - X Elapsed: 00:00:00.07 10:40:04 SYSTEM@dwh-prod > select * from dual where '' is null 10:40:11 2 / D - X Elapsed: 00:00:00.02 10:40:11 SYSTEM@dwh-prod >
source share