From 037b394bd64261bd599201dca47dab487b7771da Mon Sep 17 00:00:00 2001 From: Yihao Deng Date: Sun, 28 Apr 2024 08:09:44 +0000 Subject: [PATCH] Refactor table creation code --- docs/en/12-taos-sql/03-table.md | 4 ++-- docs/zh/12-taos-sql/03-table.md | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/en/12-taos-sql/03-table.md b/docs/en/12-taos-sql/03-table.md index c94e536cf6..ca22a6ace7 100644 --- a/docs/en/12-taos-sql/03-table.md +++ b/docs/en/12-taos-sql/03-table.md @@ -22,10 +22,10 @@ create_subtable_clause: { } create_definition: - col_name column_type [PRIMARY KEY] [ENCODE 'encode_type'] [COMPRESS 'compress_type'] [LEVEL 'level_type'] + col_name column_definition column_definition: - type_name [comment 'string_value'] [PRIMARY KEY] + type_name [comment 'string_value'] [PRIMARY KEY] [ENCODE 'encode_type'] [COMPRESS 'compress_type'] [LEVEL 'level_type'] table_options: table_option ... diff --git a/docs/zh/12-taos-sql/03-table.md b/docs/zh/12-taos-sql/03-table.md index a6df940133..773ce75430 100644 --- a/docs/zh/12-taos-sql/03-table.md +++ b/docs/zh/12-taos-sql/03-table.md @@ -23,7 +23,10 @@ create_subtable_clause: { } create_definition: - col_name column_type [PRIMARY KEY] [ENCODE 'encode_type'] [COMPRESS 'compress_type'] [LEVEL 'level_type'] + col_name column_definition + +column_definition: + type_name [comment 'string_value'] [PRIMARY KEY] [ENCODE 'encode_type'] [COMPRESS 'compress_type'] [LEVEL 'level_type'] table_options: table_option ...