Difference between revisions of "NULL Predicate"

From Lianjapedia
Jump to: navigation, search
m (1 revision: SQL)
 
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Special predicate
 
Special predicate
 
  
 
==Syntax==
 
==Syntax==
 
<expression> IS [NOT] NULL
 
<expression> IS [NOT] NULL
 
  
 
==See Also==
 
==See Also==
 
[[SQL INSERT|INSERT]], [[SQL Predicates|PREDICATES]], [[SQL SELECT|SELECT]], [[SQL UPDATE|UPDATE]]
 
[[SQL INSERT|INSERT]], [[SQL Predicates|PREDICATES]], [[SQL SELECT|SELECT]], [[SQL UPDATE|UPDATE]]
 
  
 
==Description==
 
==Description==
 
NULL is a special predicate to evaluate whether the specified <expression> is NULL.  The optional NOT can be used to evaluate whether the specified <expression> is not NULL.
 
NULL is a special predicate to evaluate whether the specified <expression> is NULL.  The optional NOT can be used to evaluate whether the specified <expression> is not NULL.
 
  
 
==Example==
 
==Example==
Line 23: Line 19:
 
</code>
 
</code>
  
 
==Products==
 
Recital, Recital Server
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:SQL]]
 
[[Category:SQL]]

Latest revision as of 08:11, 7 December 2012

Purpose

Special predicate

Syntax

<expression> IS [NOT] NULL

See Also

INSERT, PREDICATES, SELECT, UPDATE

Description

NULL is a special predicate to evaluate whether the specified <expression> is NULL. The optional NOT can be used to evaluate whether the specified <expression> is not NULL.

Example

SELECT name, address, balance, cost*1.15;
  FROM accounts;
  WHERE paid_date < date() AND ord_value IS NULL;
  ORDER BY name, paid_date