Writing rules
These pages cover the building blocks that every CoraDB SQL statement is made of.
| Topic | What it covers |
|---|---|
| Identifiers | How to name tables, columns and other objects; quoting; maximum lengths. |
| Reserved words | Words that cannot be used as unquoted names. |
| Comments | --, // and /* */ comments, and /*+ */ hints. |
| Literals | Numbers, dates and times, bit strings, character strings, collections and NULL. |
A few general rules apply to all statements:
- Keywords and identifiers are not case-sensitive. This manual writes keywords in uppercase and names in lowercase.
- A statement ends with a semicolon (
;). In corasql the semicolon tells the interpreter to run the statement; drivers usually run one statement per call without it. - Spaces, tabs and line breaks between words are interchangeable, so long statements can be spread over several lines.