Shorthand Casts for Datetime Data Types
Firebird allows the use of a shorthand “C-style” type syntax for casts from string to the types DATE
, TIME
and TIMESTAMP
.The SQL standard calls these “datetime literals”.
<data_type> 'date_format_string'
See also Datetime Literals.
Note
|
These literal expressions are evaluated directly during parsing, as though the statement were already prepared for execution.As this produced unexpected or confusing results when using the datetime mnemonics like To use datetime mnemonics, use the full
|