From e44163e256656370ce5441ba81585eb2a57fda39 Mon Sep 17 00:00:00 2001 From: Arenatlx <314806019@qq.com> Date: Fri, 19 Nov 2021 14:57:59 +0800 Subject: [PATCH] sequence: remove the `order` keyword of sequence (#7417) * remove the order of sequence Signed-off-by: ailinkid <314806019@qq.com> * Update sql-statements/sql-statement-create-sequence.md Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> --- 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 0543aaecb923..5aceb4d070c1 100644 --- a/sql-statements/sql-statement-create-sequence.md +++ b/sql-statements/sql-statement-create-sequence.md @@ -48,7 +48,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] ``` @@ -60,10 +59,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` 函数