Difference between revisions of "Kexi/Plugins/Queries/SQL Constants"

< Kexi‎ | Plugins‎ | Queries
Jump to: navigation, search
(Time constants)
(Date/Time constants)
Line 26: Line 26:
  
 
Grammar:
 
Grammar:
  #{whitespace}*{date}{whitespace}+{time}#
+
  #{date} {time}#
  
 
Where {date} is defined as for Date literals and {time} is defined as for Time literals.
 
Where {date} is defined as for Date literals and {time} is defined as for Time literals.

Revision as of 15:34, 15 April 2018

Date constants

(since 3.1.1, Bug #393094)

Grammar - two versions:

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

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

Time constants

Grammar - two versions:

  • Full
#hh:nn:ss#
  • Short
#hh:nn#

Date/Time constants

(since 3.1.1, Bug #393094)

Grammar:

#{date} {time}#

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


Content is available under Creative Commons License SA 4.0 unless otherwise noted.