Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - SQL Reference » SQL data types » Data type conversions

 

NULL constant conversions to NUMERIC and string types

When converting a NULL constant to a NUMERIC, or to a string type such as CHAR, VARCHAR, LONG VARCHAR, BINARY, VARBINARY, and LONG BINARY the size is set to 0. For example:

SELECT CAST( NULL AS CHAR ) returns CHAR(0)

SELECT CAST( NULL AS NUMERIC ) returns NUMERIC(1,0)