Jump to content

Kexi/Plugins/Queries/SQL Constants

From KDE Community Wiki

Date constants

(since 3.1.1, Bug #393094)

Grammar - two versions:

  • ISO format (KEXI default, recommended)
#{whitespace}*yyyy-mm-dd{whitespace}*#
  • US format (for compatibility, based on MSA default [1])
#{whitespace}*mm/dd/yyyy{whitespace}*#

Note: MSA's format such as #24 Dec 2014# is not supported.

Time constants

Grammar - two versions:

  • Full
#{whitespace}*hh:nn:ss*#
  • Short
#{whitespace}*hh:nn*#

Date/Time constants

(since 3.1.1, Bug #393094)

Grammar:

#{whitespace}*{date}{whitespace}+{time}#

Where {date} is defined as for Date literals and {time} is defined as for Time literals.