[typo](doc)modify some sql syntax description errors (#22420)

This commit is contained in:
ZhenchaoXu
2023-08-02 21:28:02 +08:00
committed by GitHub
parent 498c0124e8
commit 2ff4e9d79d
12 changed files with 16 additions and 16 deletions

View File

@ -79,7 +79,7 @@ The user triggers a manual collection job through a statement `ANALYZE` to colle
Column statistics collection syntax:
```SQL
ANALYZE TABLE | DATABASE table_name | db_name
ANALYZE < TABLE | DATABASE table_name | db_name >
[ PARTITIONS (partition_name [, ...]) ]
[ (column_name [, ...]) ]
[ [ WITH SYNC ] [ WITH INCREMENTAL ] [ WITH SAMPLE PERCENT | ROWS ] [ WITH PERIOD ] [WITH HISTOGRAM]]
@ -463,7 +463,7 @@ Collect information for the job by `SHOW ANALYZE` viewing the statistics.
The syntax is as follows:
```SQL
SHOW ANALYZE [ table_name | job_id ]
SHOW ANALYZE < table_name | job_id >
[ WHERE [ STATE = [ "PENDING" | "RUNNING" | "FINISHED" | "FAILED" ] ] ];
```

View File

@ -67,7 +67,7 @@ If `swap` is `false`, do as follows:
### Example
1. Atomic swap `tbl1` with `tbl2` without dropping any tables
1. Atomic swap `tbl1` with `tbl2` without dropping any tables(Note: if you delete it, you actually delete tbl1 and rename tbl2 to tbl1.)
```sql
ALTER TABLE tbl1 REPLACE WITH TABLE tbl2;

View File

@ -45,7 +45,7 @@ grammar:
```sql
CREATE FILE "file_name" [IN database]
[properties]
PROPERTIES("key"="value", ...)
````
illustrate:

View File

@ -39,7 +39,7 @@ This operation is an asynchronous operation. After the submission is successful,
grammar:
```sql
CREATE MATERIALIZED VIEW [MV name] as [query]
CREATE MATERIALIZED VIEW < MV name > as < query >
[PROPERTIES ("key" = "value")]
````

View File

@ -68,14 +68,14 @@ illustrate:
```sql
create table `test`.`select_varchar`
PROPERTIES(\"replication_num\" = \"1\")
PROPERTIES("replication_num" = "1")
as select * from `test`.`varchar_table`
```
2. Custom field names (need to match the number of fields returned)
```sql
create table `test`.`select_name`(user, testname, userstatus)
PROPERTIES(\"replication_num\" = \"1\")
PROPERTIES("replication_num" = "1")
as select vt.userId, vt.username, jt.status
from `test`.`varchar_table` vt join
`test`.`join_table` jt on vt.userId=jt.userId

View File

@ -37,7 +37,7 @@ This statement is used to display the amount of data, the number of replicas, an
grammar:
```sql
SHOW DATA [FROM db_name[.table_name]] [ORDER BY ...];
SHOW DATA [FROM [db_name.]table_name] [ORDER BY ...];
````
illustrate:

View File

@ -79,7 +79,7 @@ Doris 查询优化器使用统计信息来确定查询最有效的执行计划
列统计信息收集语法:
```SQL
ANALYZE TABLE | DATABASE table_name | db_name
ANALYZE < TABLE | DATABASE table_name | db_name >
[ PARTITIONS (partition_name [, ...]) ]
[ (column_name [, ...]) ]
[ [ WITH SYNC ] [ WITH INCREMENTAL ] [ WITH SAMPLE PERCENT | ROWS ] [ WITH PERIOD ] [WITH HISTOGRAM]]
@ -490,7 +490,7 @@ mysql> ANALYZE TABLE stats_test.example_tbl PROPERTIES("automatic" = "true");
语法如下:
```SQL
SHOW ANALYZE [ table_name | job_id ]
SHOW ANALYZE < table_name | job_id >
[ WHERE [ STATE = [ "PENDING" | "RUNNING" | "FINISHED" | "FAILED" ] ] ];
```

View File

@ -67,7 +67,7 @@ ALTER TABLE [db.]tbl1 REPLACE WITH TABLE tbl2
### Example
1.`tbl1``tbl2` 进行原子交换,不删除任何表
1.`tbl1``tbl2` 进行原子交换,不删除任何表(注:如果删除的话,实际上删除的是tbl1,只是将tbl2重命名为tbl1。)
```sql
ALTER TABLE tbl1 REPLACE WITH TABLE tbl2;

View File

@ -45,7 +45,7 @@ CREATE FILE
```sql
CREATE FILE "file_name" [IN database]
[properties]
PROPERTIES("key"="value", ...)
```
说明:

View File

@ -39,7 +39,7 @@ CREATE MATERIALIZED VIEW
语法:
```sql
CREATE MATERIALIZED VIEW [MV name] as [query]
CREATE MATERIALIZED VIEW < MV name > as < query >
[PROPERTIES ("key" = "value")]
```

View File

@ -68,14 +68,14 @@ CREATE TABLE table_name [( column_name_list )]
```sql
create table `test`.`select_varchar`
PROPERTIES(\"replication_num\" = \"1\")
PROPERTIES("replication_num" = "1")
as select * from `test`.`varchar_table`
```
2. 自定义字段名(需要与返回结果字段数量一致)
```sql
create table `test`.`select_name`(user, testname, userstatus)
PROPERTIES(\"replication_num\" = \"1\")
PROPERTIES("replication_num" = "1")
as select vt.userId, vt.username, jt.status
from `test`.`varchar_table` vt join
`test`.`join_table` jt on vt.userId=jt.userId

View File

@ -37,7 +37,7 @@ SHOW DATA
语法:
```sql
SHOW DATA [FROM db_name[.table_name]] [ORDER BY ...];
SHOW DATA [FROM [db_name.]table_name] [ORDER BY ...];
```
说明: