| 1 |
# Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0, |
| 2 |
# and the EPL 1.0 (https://h2database.com/html/license.html). |
| 3 |
# Initial Developer: H2 Group) |
| 4 |
|
| 5 |
"SECTION","TOPIC","SYNTAX","TEXT" |
| 6 |
"Grammar","Query"," |
| 7 |
SELECT { * | { column [ , ... ] } } FROM { selector [ join ... ] } |
| 8 |
[ WHERE constraint ] [ ORDER BY { ordering [ , ... ] } ] |
| 9 |
"," |
| 10 |
" |
| 11 |
|
| 12 |
"Grammar","Column"," |
| 13 |
{ [ selectorName . ] propertyName [ AS columnName ] } | { selectorName . * } |
| 14 |
"," |
| 15 |
" |
| 16 |
|
| 17 |
"Grammar","Selector"," |
| 18 |
nodeTypeName [ AS selectorName ] |
| 19 |
"," |
| 20 |
" |
| 21 |
|
| 22 |
"Grammar","Join"," |
| 23 |
{ INNER | { LEFT | RIGHT } OUTER } JOIN rightSelector ON |
| 24 |
{ selectorName . propertyName = joinSelectorName . joinPropertyName } |
| 25 |
| { ISSAMENODE( selectorName , joinSelectorName [ , selectorPathName ] ) } |
| 26 |
| { ISCHILDNODE( childSelectorName , parentSelectorName ) } |
| 27 |
| { ISDESCENDANTNODE( descendantSelectorName , ancestorSelectorName ) } |
| 28 |
"," |
| 29 |
" |
| 30 |
|
| 31 |
"Grammar","Constraint"," |
| 32 |
andCondition [ { OR andCondition } [...] ] |
| 33 |
"," |
| 34 |
" |
| 35 |
|
| 36 |
"Grammar","And Condition"," |
| 37 |
condition [ { AND condition } [...] ] |
| 38 |
"," |
| 39 |
" |
| 40 |
|
| 41 |
"Grammar","Condition"," |
| 42 |
comparison | NOT constraint | ( constraint ) |
| 43 |
| [ selectorName . ] propertyName IS [ NOT ] NULL |
| 44 |
| CONTAINS( { { [ selectorName . ] propertyName } | { selectorName . * } } , fulltextSearchExpression ) |
| 45 |
| { ISSAMENODE | ISCHILDNODE | ISDESCENDANTNODE } ( [ selectorName , ] PathName ) |
| 46 |
"," |
| 47 |
" |
| 48 |
|
| 49 |
"Grammar","Comparison"," |
| 50 |
dynamicOperand { = | <> | < | <= | > | >= | LIKE } staticOperand |
| 51 |
"," |
| 52 |
" |
| 53 |
|
| 54 |
"Grammar","Fulltext Search Expression"," |
| 55 |
' anythingExceptSingleQuote ' | $ bindVariableName |
| 56 |
"," |
| 57 |
" |
| 58 |
|
| 59 |
"Grammar","Static Operand"," |
| 60 |
literal |
| 61 |
| $ bindVariableName |
| 62 |
| CAST ( literal AS { STRING | BINARY | DATE | LONG | DOUBLE | DECIMAL | BOOLEAN | NAME | PATH | REFERENCE | WEAKREFERENCE | URI } ) |
| 63 |
"," |
| 64 |
" |
| 65 |
|
| 66 |
"Grammar","Literal"," |
| 67 |
' anythingExceptSingleQuote ' |
| 68 |
| "" anythingExceptDoubleQuote "" |
| 69 |
| numberLiteral |
| 70 |
"," |
| 71 |
" |
| 72 |
|
| 73 |
"Grammar","Number Literal"," |
| 74 |
[ + | - ] { { number [ . number ] } | { . number } } [ E [ + | - ] expNumber [...] ] ] |
| 75 |
"," |
| 76 |
" |
| 77 |
|
| 78 |
"Grammar","Number"," |
| 79 |
0-9 [...] |
| 80 |
"," |
| 81 |
" |
| 82 |
|
| 83 |
"Grammar","Dynamic Operand"," |
| 84 |
[ selectorName . ] propertyName |
| 85 |
| LENGTH( [ selectorName . ] propertyName ) |
| 86 |
| { NAME | LOCALNAME | SCORE } ( [ selectorName ] ) |
| 87 |
| { LOWER | UPPER } ( dynamicOperand ) |
| 88 |
"," |
| 89 |
" |
| 90 |
|
| 91 |
"Grammar","Ordering"," |
| 92 |
simpleName [ ASC | DESC ] |
| 93 |
"," |
| 94 |
" |
| 95 |
|
| 96 |
"Grammar","Name"," |
| 97 |
simpleName | '[' quotedName ']' |
| 98 |
"," |
| 99 |
" |