table1(id int,name VC,description VC); のようなテーブルがあります。このテーブルには数百のレコードが含まれています。説明列には、いくつかの空白と null 値があります。説明値が Null または空白である行を削除したいですか?
私はこのようにしてみました
select * from table1 where description not in('',NULL); //Displaying nothing
But
select * from table1 where description in('',NULL);// It is displaying all the rows which contains white spaces but not Nulls
私は混乱しています。IN 演算子は varchar も受け入れます。NOT を使用しない場合は正しい結果が得られますが、NOT を使用すると得られないのはなぜですか。
前もって感謝します..