Developing Portable Applications : 3. Application Considerations : Implementation Differences : NULL Literal
 
Share this page                  
NULL Literal
IBM's DB2 UDB database server does not support the literal NULL in a query unless is it explicitly type cast using the DB2 UDB function CAST(). For example:
select null;

[IBM][CLI Driver][DB2/NT] SQL0206N  "NULL" is not valid in the context where it is used.  SQLSTATE=42703