About 1,280,000 results
Open links in new tab
  1. How do I check if a Sql server string is null or empty

    SELECT IIF(field IS NULL, 1, 0) AS IsNull The same way you can check if field is empty.

  2. Is there a quick way to check if ANY column is NULL?

    Mar 14, 2012 · If you mean quicker for SQL Server to execute, one thing you could do is write a trigger than updates a bit column that specifies if the entire row (other than the bit and primary …

  3. Check if a column's value is null in SQL Server - Stack Overflow

    Jul 24, 2015 · Can't believe I am stuck with this but how can I check that value I am returning is null in select statement IF EXISTS(SELECT TU.Tagged FROM TopicUser TU WHERE …

  4. SQL is null and = null - Stack Overflow

    Mar 6, 2012 · The reasoning is that a null means "unknown", so the result of any comparison to a null is also "unknown". So you'll get no hit on rows by coding where my_column = null. SQL …

  5. sql - How to check for null/empty/whitespace values with a single …

    How to check for null/empty/whitespace values with a single test? Asked 15 years, 1 month ago Modified 1 year, 3 months ago Viewed 498k times

  6. How to compare values which may both be null in T-SQL

    When this approach was used as a partial join predicate for a single field it performed much slower than the equivalent " (a=b or (a is null and b is null))". Fields a and b happened to be …

  7. sql - Best way to check for "empty or null value" - Stack Overflow

    What is best way to check if value is null or empty string in Postgres sql statements? Value can be long expression so it is preferable that it is written only once in check. Currently I'm using:

  8. How to use NULL or empty string in SQL - Stack Overflow

    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.

  9. How do I check if a SQL Server text column is empty?

    Aug 29, 2008 · 218 I am using SQL Server 2005. I have a table with a text column and I have many rows in the table where the value of this column is not null, but it is empty. Trying to …

  10. How to check for Is not Null And Is not Empty string in SQL server ...

    Dec 28, 2011 · How can we check in a SQL Server WHERE condition whether the column is not null and not the empty string ('')?