The SAFECAST function casts the input data type to the explicit value without causing exceptions. SAFECAST is when used with tiImport code additionally affected by the SET CULTURE command.
Syntax:
SAFECAST(Expression as DataType) .See also: CAST
Example:
SAFECAST(Expression as TEXT)SAFECAST(Expression as DATETIME)SAFECAST(Expression as BIT)SAFECAST(Expression as TINYINT)SAFECAST(Expression as SMALLINT)SAFECAST(Expression as INTEGER)SAFECAST(Expression as BIGINT)SAFECAST(Expression as REAL)SAFECAST(Expression as DOUBLE)SAFECAST(Expression as DECIMAL)

  • No labels