Operators and functions
CoraDB provides operators and built-in functions for every data type. The examples on these pages run on the e-commerce sample database or on literal values, and show real results.
Operators
Section titled “Operators”| Page | Contents |
|---|---|
| Comparison operators | =, <=>, <>, <, >, IS [NOT] NULL/TRUE/FALSE |
| Logical operators | AND, OR, XOR, NOT |
| Arithmetic operators | +, -, *, /, DIV, MOD, and arithmetic on dates |
| Set arithmetic operators | Union, difference and intersection of collection values |
| Statement set operators | UNION, DIFFERENCE/EXCEPT, INTERSECTION/INTERSECT of queries |
| Containment operators | SETEQ, SUBSET, SUPERSET and related operators |
| Conditional expressions | ANY/ALL, BETWEEN, EXISTS, IN, IS NULL, LIKE, CASE |
| List predicates | ALL, ANY, NONE, SINGLE over the elements of a list |
Functions
Section titled “Functions”When a function receives an argument that cannot be converted to the type it expects, it returns an error, or NULL if the return_null_on_function_errors parameter is yes.