[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

17. Appendix C: Query Syntax

 
query        ::= FIND maintable [WHERE expression] [ORDER BY orderbys] [AT DATE]
             |   VIEW references [WHERE expression] [ORDER BY orderbys] [AT DATE]

orderbys     ::= orderby [, orderby]*

orderby      ::= refterm [<direction>]

expression   ::= ( expression )
             |   expression LOGICAL_OPERATOR expression
             |   UNARY_LOGICAL_OPERATOR expression
             |   condition

condition    ::= term OPERATOR term
             |   term UNARY_OPERATOR

term         ::= STRING
             |   NUMBER
             |   DATE
             |   OBJECT
             |   tablespec [. attrspec]

references   ::= refterm [IDENTIFIER] [, refterm]*

refterm      ::= tablespec [. attrspec]

attrspec     ::= [attrspec .] attribute:attr

attribute    ::= IDENTIFIER [ '[' STRING ']' ] [ ( IDENTIFIER ) ]

maintable    ::= tablespec
             
tablespec    ::= IDENTIFIER [ ( qualified_identifier ) ]
            
qualified_identifier 
             ::= [ qualified_identifier . ]* IDENTIFIER


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by Robert Brautigam on November, 21 2009 using texi2html 1.78.