Determine Oracle null == null

前端 未结 11 1887
栀梦
栀梦 2020-11-28 10:07

I wish to search a database table on a nullable column. Sometimes the value I\'m search for is itself NULL. Since Null is equal to nothing, even NULL, saying



        
11条回答
  •  南笙
    南笙 (楼主)
    2020-11-28 10:49

    In Expert Oracle Database Architecture I saw:

    WHERE DECODE(MYCOLUMN, SEARCHVALUE, 1) = 1
    

提交回复
热议问题