I would like to know how to use NULL and an empty string at the same time in a WHERE
clause in SQL Server. I need to find records that have either null values or an empty string. Thanks.
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- What means in Dart static type and why it differs
- What is the best way to cache a table from a (SQL)
You can examine
''
asNULL
by converting it toNULL
usingNULLIF
or you can examine
NULL
as''
usingSELECT ISNULL(NULL,'')
by this function:
and use this:
dbo.isnull(value,0)