-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Operators
- 100% correct operator precedence
-
OPERATOR(...)syntax, likeOPERATOR(+)orOPERATOR(schema.table.|//) -
~can be both a unary or binary operator (bitwise negation or string match) - Array-access:
- element access
foo[1] - slice operator:
foo[1:5],foo[2:],foo[:5],foo[:]
- element access
- Type casts
-
CAST(expr AS type) -
expr::type -
type(expr)e.g.float8(125) -
type 'string'e.g.TIME (6) WITH TIME ZONE '15:30'orVARCHAR(100) 'Hello'
-
- Logical operators:
OR,AND,NOT - Comparison operators:
-
>,<,>=,<=,=,<>,!= -
[NOT] BETWEEN ... AND ... -
[NOT] BETWEEN SYMMETRIC ... AND ... -
IS [NOT] DISTINCT FROM -
IS [NOT] {NULL | TRUE | FALSE | UNKNOWN} -
ISNULL -
NOTNULL - row constructor comparison
-
- Math operators:
- Unary
+ - Unary
- - Unary
~ -
+,-,*,/ -
% -
^ - Others:
|/,||/,@,&,|,>>,<< -
#works as bitwise XOR, not as comment
- Unary
- String operators:
-
|| -
IS [NOT] [form] NORMALIZED -
^@ - COLLATE
-
- Pattern matching:
-
[NOT] LIKE -
[NOT] ILIKE -
ESCAPEwith LIKE & ILIKE -
SIMILAR TO -
ESCAPEwith SIMILAR TO - Regex and like operators:
~,!~,~*,!~*,~~,!~~,~~*,!~~*
-
- JSON and JSONB operators:
-
->,->>,#>,#>> -
@>,<@,?,?|,?&,||,-,#-,@?,@@
-
- Subquery operators:
-
EXISTS -
[NOT] IN -
ANY,SOME,ALL
-
- Date manipulation:
- Function calls:
- Named function arguments.
- Old
:=syntax for named function arguments. - parenthesis-less date-time functions
- session information functions
Metadata
Metadata
Assignees
Labels
No labels