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.
有没有一种方法可以捕获所有值FieldName <> 'Value',即返回字段名称为 NULL 的记录,不用说(FieldName <> 'Value' OR FieldName IS NULL)对于每个条件字段?
FieldName <> 'Value'
(FieldName <> 'Value' OR FieldName IS NULL
ISNULL(FieldName,'') <> 'Value'
或使用
SET ANSI_NULLS OFF; <..your query..>
但是,设置 ANSI_NULLS的功能即将淘汰。