Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
どういうわけか、呼び出しても結果が得られません。select * from table_1 t1 where t1.c1 IS NOT NULL and Trim(t1.c1)!='';
Trim(t1.c1)!=''の部分は問題を引き起こし、実際には何も返しません。
Oracleは、空の文字列('')とNULL同じものであるという点で独特です。それはあなたが言っているかのようです:
''
NULL
trim(t1.c1) != NULL
そのような声明は決して真実ではありません。試す:
trim(t1.c1) IS NOT NULL