From ed9e671f570bb2d31d38eab60716b58100a89814 Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Fri, 19 Nov 2021 15:25:48 +0800 Subject: [PATCH] sequence: remove the `order` keyword of sequence (#7417) (#7560) --- sql-statements/sql-statement-create-sequence.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sql-statements/sql-statement-create-sequence.md b/sql-statements/sql-statement-create-sequence.md index 71c2e0406d29..f3c1818bae12 100644 --- a/sql-statements/sql-statement-create-sequence.md +++ b/sql-statements/sql-statement-create-sequence.md @@ -47,7 +47,6 @@ CREATE [TEMPORARY] SEQUENCE [IF NOT EXISTS] sequence_name [ START [ WITH | = ] start ] [ CACHE [=] cache | NOCACHE | NO CACHE] [ CYCLE | NOCYCLE | NO CYCLE] - [ ORDER | NOORDER | NO ORDER] [table_options] ``` @@ -59,10 +58,9 @@ CREATE [TEMPORARY] SEQUENCE [IF NOT EXISTS] sequence_name | `INCREMENT` | `1` | 指定序列的步长。其正负值可以控制序列的增长方向。| | `MINVALUE` | `1` 或 `-9223372036854775807` | 指定序列的最小值。当 `INCREMENT` > `0` 时,默认值为 `1`;当 `INCREMENT` < `0` 时,默认值为 `-9223372036854775807`。| | `MAXVALUE` | `9223372036854775806` 或 `-1` | 指定序列的最大值。当 `INCREMENT` > `0` 时,默认值为 `9223372036854775806`;当 `INCREMENT` < `0` 时,默认值为 `-1`。| -| `START` | `MINVALUE` 或 `MAXVALUE` | 指定序列的初始值。当 `INCREMENT` > `0` 时,默认值为 `MINVALUE`; 当 `INCREMENT` < `0` 时,默认值为 `MAXVALUE`。| +| `START` | `MINVALUE` 或 `MAXVALUE` | 指定序列的初始值。当 `INCREMENT` > `0` 时,默认值为 `MINVALUE`; 当 `INCREMENT` < `0` 时,默认值为 `MAXVALUE`。 | | `CACHE` | `1000` | 指定每个 TiDB 本地缓存序列的大小。| | `CYCLE` | `NO CYCLE` | 指定序列用完之后是否要循环使用。在 `CYCLE` 的情况下,当 `INCREMENT` > `0` 时,序列用完后的后续起始值为 `MINVALUE`;当 `INCREMENT` < `0` 时,序列用完后的后续起始值为 `MAXVALUE`。| -| `ORDER` | `NO ORDER` | TiDB 暂时不支持 `ORDER` 选项,仅在语法上做兼容。| ## `SEQUENCE` 函数