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
15 changes: 14 additions & 1 deletion docs/sql-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The planned features are listed [here](#planned-features).
* [CREATE INDEX](#create-index)
* [DROP TABLE](#drop-table)
* [DROP INDEX](#drop-index)
* [TRUNCATE TABLE](#truncate-table)
* [GRANT PRIVILEGE](#grant-privilege)
* [REVOKE PRIVILEGE](#revoke-privilege)

Expand All @@ -18,6 +19,7 @@ The planned features are listed [here](#planned-features).
<index-definition>
<drop-table>
<drop-index>
<truncate-table>
<grant-privilege>
<revoke-privilege>
```
Expand Down Expand Up @@ -146,6 +148,17 @@ Limitation: index name must be specified, and it must not be empty.
RESTRICT
```

### TRUNCATE TABLE

```txt
<truncate-table>:
TRUNCATE TABLE <table-name> [<column-identity-restart-option>]

<column-identity-restart-option>:
RESTART IDENTITY
CONTINUE IDENTITY
```

### GRANT PRIVILEGE

```txt
Expand Down Expand Up @@ -923,7 +936,7 @@ The below reserved words are not allowed to use as regular identifiers.
* `S`
* `SAVEPOINT`, `SCOPE`, `SEARCH`, `SECOND`, `SELECT`, `SESSION_USER`, `SET`, `SIMILAR`, `SMALLINT`, `SOME`, `SPECIFIC`, `SQL`, `SQLEXCEPTION`, `SQLSTATE`, `SQLWARNING`, `START`, `STATIC`, `SUBLIST`, `SUBSTRING`, `SUM`, `SYMMETRIC`, `SYSTEM_USER`
* `T`
* `TABLE`, `TEMPORARY`, `THEN`, `TIME`, `TIMESTAMP`, `TIMEZONE_HOUR`, `TIMEZONE_MINUTE`, `TINYINT`, `TO`, `TRAILING`, `TRANSLATE`, `TRANSLATION`, `TREAT`, `TRIGGER`, `TRIM`, `TRUE`
* `TABLE`, `TEMPORARY`, `THEN`, `TIME`, `TIMESTAMP`, `TIMEZONE_HOUR`, `TIMEZONE_MINUTE`, `TINYINT`, `TO`, `TRAILING`, `TRANSLATE`, `TRANSLATION`, `TREAT`, `TRIGGER`, `TRIM`, `TRUE`, `TRUNCATE`
* `U`
* `UNION`, `UNIQUE`, `UNKNOWN`, `UNNEST`, `UPDATE`, `UPPER`, `USER`, `USING`
* `V`
Expand Down