Skip to content

Commit

Permalink
[docs](typo) fix some typo of docs (apache#22591)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yulei-Yang authored Aug 4, 2023
1 parent 56e8ad1 commit 9cf6b1b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ In an ALTER USER command, only one of the following account attributes can be mo
1. Change the user's password

```
ALTER USER jack@‘%’ IDENTIFIED BY "12345";
ALTER USER jack@'%' IDENTIFIED BY "12345";
```

2. Modify the user's password policy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ PROPERTIES (
```

- The first and second statements have the same effect. If the target column is not specified during overwriting, the column order in the table will be used as the default target column. After the overwrite is successful, there is only one row of data in the `test` table.
- The third and fourth statements have the same effect. The unspecified column `c2` will be overwritten with the default value 1. After the overwrite is successful, there is only one row of data in the `test` table.
- The third and fourth statements have the same effect. The unspecified column `c2` will be overwritten with the default value 4. After the overwrite is successful, there is only one row of data in the `test` table.
- The fifth and sixth statements have the same effect. Expressions (such as `2+2`, `2*2`) can be used in the statement. The result of the expression will be computed during the execution of the statement and then overwritten into the `test` table. After the overwrite is successful, there are two rows of data in the `test` table.
- The seventh and eighth statements have the same effect. The unspecified column `c2` will be overwritten with the default value 1. After the overwrite is successful, there are two rows of data in the `test` table.
- The seventh and eighth statements have the same effect. The unspecified column `c2` will be overwritten with the default value 4. After the overwrite is successful, there are two rows of data in the `test` table.

2. Overwrite the `test` table in the form of a query statement. The data format of the `test2` table and the `test` table must be consistent. If they are not consistent, implicit data type conversion will be triggered.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ password_policy:
1. 修改用户的密码

```
ALTER USER jack@‘%’ IDENTIFIED BY "12345";
ALTER USER jack@'%' IDENTIFIED BY "12345";
```

2. 修改用户的密码策略
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ PROPERTIES (
```

- 第一条语句和第二条语句的效果一致,重写时如果不指定目标列,会使用表中的列顺序来作为默认的目标列。重写成功后表`test`中只有一行数据。
- 第三条语句和第四条语句的效果一致,没有指定的列`c2`会使用默认值1来完成数据重写。重写成功后表`test`中只有一行数据。
- 第三条语句和第四条语句的效果一致,没有指定的列`c2`会使用默认值4来完成数据重写。重写成功后表`test`中只有一行数据。
- 第五条语句和第六条语句的效果一致,在语句中可以使用表达式(如`2+2``2*2`),执行语句的时候会计算出表达式的结果再重写表`test`。重写成功后表`test`中有两行数据。

- 第七条语句和第八条语句的效果一致,没有指定的列`c2`会使用默认值1来完成数据重写。重写成功后表`test`中有两行数据。
- 第七条语句和第八条语句的效果一致,没有指定的列`c2`会使用默认值4来完成数据重写。重写成功后表`test`中有两行数据。

2. 查询语句的形式重写`test`表,表`test2`和表`test`的数据格式需要保持一致,如果不一致会触发数据类型的隐式转换

Expand Down

0 comments on commit 9cf6b1b

Please sign in to comment.