如何写查询
有表 xxx, 两个字段
[a] Nvarchar(64) NOT NULL,
[b] Nvarchar(64)
希望查询出在 b 字段中是否有内容(是否为空),如何查询?
select IsEmpty(b) from xxx
好象不对
[解决办法]
select tmp=case when isnull(b, ' ')= ' ' then 'True ' else 'False ' end
from xxx