How does 'in' clause works in oracle

前端 未结 5 1586
遇见更好的自我
遇见更好的自我 2020-12-11 04:46
select \'true\' from dual where 1 not in (null,1);

when we execute this which will result nothing

what my question is:

is the above

5条回答
  •  醉酒成梦
    2020-12-11 05:09

    Yes they are.

    select something from table where column not in (1,2,3);
    

    is equivalent to

    select something from table where column != 1 and column != 2 and column != 3;
    

提交回复
热议问题