|
Object Query Language 对象查询语言,和SQL类似但比SQL语法要简单很多,功能也弱很多,只有SELECT语法。具体语法看下面:
query ::= select-query [UNION query]
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
|
|