User Tools

Site Tools


oql:oql_grammar
Translations of this page:

OQL Grammar

The OQL grammar can be described as following using the BNF syntax:

select-query ::= SELECT class-reference [class-joined] [WHERE expression]
class-reference ::= name [AS name]
class-joined ::= JOIN class-reference ON name.name = name.id
name ::= string | `string`
expression ::=
scalar
| expression operator expression
| (expression)
scalar ::= number | ‘string’ | “string” | column
operator ::= AND | OR | = | <> | != | > | >= | < | <= | LIKE | NOT LIKE
column ::= name | name.name
oql/oql_grammar.txt · Last modified: 2013/12/10 18:56 (external edit)