Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ type-name: BOOL[EAN] | [BIG]INT | DECIMAL | FLOAT | DOUBLE | JSONB | TEXT | TIME

## Syntax notes

- String literals can be quited with `"` or `'`.
- String literals can be quoted with `"` or `'`.
- Column or table names can be escaped with <code>`</code>.
- Column and table names are case-sensitive, syntax keywords are not.
- Comments are supported with `--` at the start of the line or `/* comment */` syntax.
- The result of comparisons between different types or with NULL depends on the underlying database.
- Casting behaviour depends on the underlying database.
- Math operations involving more than one of the numeric type are always casted to either decimal or float, i.e. `10 / 3` will not return `3`, but always `3.3333...`.
- Math operations involving different numeric types are always casted to either decimal or float, i.e. `10 / 3` will not return `3`, but always `3.3333...`.
- `||` is a concatenation operator and `->` a JSON traversal operator.

## Supported functions
Expand Down Expand Up @@ -171,4 +171,4 @@ ORDER BY paid DESC
SELECT address->city->state AS state
FROM customers
WHERE name = "CA"
```
```
Loading