morrySnow commented on code in PR #1930:
URL: https://github.com/apache/doris-website/pull/1930#discussion_r1942204784


##########
docs/sql-manual/sql-statements/account-management/ALTER-USER.md:
##########
@@ -24,78 +24,108 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-
 ## Description
 
-The ALTER USER command is used to modify a user's account attributes, 
including passwords, and password policies, etc.
+The `ALTER USER` statement is used to modify a user's account attributes, 
including passwords, and password policies, etc.
 
->Note that.
->
->This command give over supports modifying user roles from versions 2.0. 
Please use [GRANT](./GRANT.md) and [REVOKE](./REVOKE.md) for related operations
+## Syntax
 
 ```sql
-ALTER USER [IF EXISTS] user_identity [IDENTIFIED BY 'password']
-[password_policy]
-[comment]    
-
-user_identity:
-    'user_name'@'host'
+ALTER USER [IF EXISTS] <user_identity> [IDENTIFIED BY <password>]
+[<password_policy>]
+[<comment>]
 
 password_policy:
-
-    1. PASSWORD_HISTORY [n|DEFAULT]
-    2. PASSWORD_EXPIRE [DEFAULT|NEVER|INTERVAL n DAY/HOUR/SECOND]
-    3. FAILED_LOGIN_ATTEMPTS n
-    4. PASSWORD_LOCK_TIME [n DAY/HOUR/SECOND|UNBOUNDED]
+    1. PASSWORD_HISTORY [ <n> | DEFAULT ]
+    2. PASSWORD_EXPIRE [ DEFAULT | NEVER | INTERVAL <n> { DAY | HOUR | SECOND 
}]

Review Comment:
   ```suggestion
       2. PASSWORD_EXPIRE { DEFAULT | NEVER | INTERVAL <n> { DAY | HOUR | 
SECOND }}
   ```



##########
docs/sql-manual/sql-statements/account-management/ALTER-USER.md:
##########
@@ -24,78 +24,108 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-
 ## Description
 
-The ALTER USER command is used to modify a user's account attributes, 
including passwords, and password policies, etc.
+The `ALTER USER` statement is used to modify a user's account attributes, 
including passwords, and password policies, etc.
 
->Note that.
->
->This command give over supports modifying user roles from versions 2.0. 
Please use [GRANT](./GRANT.md) and [REVOKE](./REVOKE.md) for related operations
+## Syntax
 
 ```sql
-ALTER USER [IF EXISTS] user_identity [IDENTIFIED BY 'password']
-[password_policy]
-[comment]    
-
-user_identity:
-    'user_name'@'host'
+ALTER USER [IF EXISTS] <user_identity> [IDENTIFIED BY <password>]
+[<password_policy>]
+[<comment>]
 
 password_policy:
-
-    1. PASSWORD_HISTORY [n|DEFAULT]
-    2. PASSWORD_EXPIRE [DEFAULT|NEVER|INTERVAL n DAY/HOUR/SECOND]
-    3. FAILED_LOGIN_ATTEMPTS n
-    4. PASSWORD_LOCK_TIME [n DAY/HOUR/SECOND|UNBOUNDED]
+    1. PASSWORD_HISTORY [ <n> | DEFAULT ]

Review Comment:
   ```suggestion
       1. PASSWORD_HISTORY { <n> | DEFAULT }
   ```



##########
docs/sql-manual/sql-statements/account-management/CREATE-USER.md:
##########
@@ -24,112 +24,130 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-
-
 ## Description
 
-The CREATE USER command is used to create a Doris user.
+The `CREATE USER` statement is used to create a Doris user.
+
+## Syntax
 
 ```sql
-CREATE USER [IF EXISTS] user_identity [IDENTIFIED BY 'password']
-[DEFAULT ROLE 'role_name']
-[password_policy]
-[comment]
-    
-user_identity:
-    'user_name'@'host'
-    
-password_policy:
+CREATE USER [IF EXISTS] <user_identity> [IDENTIFIED BY <password>]
+[DEFAULT ROLE <role_name>]
+[<password_policy>]
+[<comment>]  
 
-    1. PASSWORD_HISTORY [n|DEFAULT]
-    2. PASSWORD_EXPIRE [DEFAULT|NEVER|INTERVAL n DAY/HOUR/SECOND]
-    3. FAILED_LOGIN_ATTEMPTS n
-    4. PASSWORD_LOCK_TIME [n DAY/HOUR/SECOND|UNBOUNDED]
+password_policy:
+    1. PASSWORD_HISTORY [ <n> | DEFAULT ]

Review Comment:
   和 alter user 类似



##########
docs/sql-manual/sql-statements/account-management/ALTER-USER.md:
##########
@@ -24,78 +24,108 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-
 ## Description
 
-The ALTER USER command is used to modify a user's account attributes, 
including passwords, and password policies, etc.
+The `ALTER USER` statement is used to modify a user's account attributes, 
including passwords, and password policies, etc.
 
->Note that.
->
->This command give over supports modifying user roles from versions 2.0. 
Please use [GRANT](./GRANT.md) and [REVOKE](./REVOKE.md) for related operations
+## Syntax
 
 ```sql
-ALTER USER [IF EXISTS] user_identity [IDENTIFIED BY 'password']
-[password_policy]
-[comment]    
-
-user_identity:
-    'user_name'@'host'
+ALTER USER [IF EXISTS] <user_identity> [IDENTIFIED BY <password>]
+[<password_policy>]
+[<comment>]
 
 password_policy:
-
-    1. PASSWORD_HISTORY [n|DEFAULT]
-    2. PASSWORD_EXPIRE [DEFAULT|NEVER|INTERVAL n DAY/HOUR/SECOND]
-    3. FAILED_LOGIN_ATTEMPTS n
-    4. PASSWORD_LOCK_TIME [n DAY/HOUR/SECOND|UNBOUNDED]
+    1. PASSWORD_HISTORY [ <n> | DEFAULT ]
+    2. PASSWORD_EXPIRE [ DEFAULT | NEVER | INTERVAL <n> { DAY | HOUR | SECOND 
}]
+    3. FAILED_LOGIN_ATTEMPTS <n>
+    4. PASSWORD_LOCK_TIME [ UNBOUNDED | <n> { DAY | HOUR | SECOND } ]

Review Comment:
   ```suggestion
       4. PASSWORD_LOCK_TIME { UNBOUNDED | <n> { DAY | HOUR | SECOND } }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to