ISNULLOREMPTY(column)

Checks whether the contents of the specified column is NULL or that it is empty. The function returns TRUE (1) if a column is null or if its (string) length is zero. Otherwise returns FALSE (0). Currently only works with Strings.

Syntax:

SELECT * WHERE ISNULLOREMPTY(columnname)=FALSE|TRUE

See also: ISNULL.

Example:

/* Get all customers from the customer table where country is Denmark and where the customer name is 
not NULL or empty */
SELECT * FROM Customer WHERE Country=’Denmark’ and ISNULLOREMPTY(CustomerName)=FALSE
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.