これは、InterSystems FAQサイトの記事です。
SQLの場合、NULLデータと空文字列 ('')は区別されます。
それぞれの設定・確認方法は、以下のようになります。
(1) NULLデータ
【SQL】
insert into test (a) values (NULL)
select * from test where a IS NULL
select * from test where a IS NULL
【InterSystems ObjectScript】
set x=##class(User.test).%New()
set x.a=""
set x.a=""
(2) 空文字列 ('')
【SQL】
insert into test (a) values ('')
select * from test where a = ''
select * from test where a = ''
【InterSystems ObjectScript】
set x=##class(User.test).%New()
set x.a=$C(0)
set x.a=$C(0)
詳細については、以下ドキュメントをご参照ください。