Rubrica InterSystems FAQ
No SQL, dados NULL e a string vazia ('') são dados diferentes. O método para definir e checar cada uma é como se segue
(1) dado NULL
[SQL]
insert into test(a) values(NULL)
select * from test where a IS NULL[InterSystems ObjectScript]
set x=##class(User.test).%New()
set x.a=""(2) String Vazia ('')
[SQL]
insert into test(a) values('')
select * from test where a = ''[InterSystems ObjectScript]
set x=##class(User.test).%New()
set x.a=$C(0)Para mais informações, por favor veja os seguintes documentos:
.png)

.jpg)

