Skip to content

Commit 90e76a5

Browse files
authored
updated (#1676)
1 parent d517966 commit 90e76a5

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

docs/en/sql-reference/10-sql-commands/00-ddl/02-user/01-user-create-user.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebar_position: 1
44
---
55
import FunctionDescription from '@site/src/components/FunctionDescription';
66

7-
<FunctionDescription description="Introduced or updated: v1.2.566"/>
7+
<FunctionDescription description="Introduced or updated: v1.2.703"/>
88

99
Creates a SQL user.
1010

@@ -25,6 +25,11 @@ CREATE [ OR REPLACE ] USER <name> IDENTIFIED [ WITH <auth_type> ] BY '<password>
2525
[ WITH DISABLED = true | false ] -- User created in a disabled state
2626
```
2727

28+
- The `<name>` cannot contain the following illegal characters:
29+
- Single quote (')
30+
- Double quote (")
31+
- Backspace (\b)
32+
- Form feed (\f)
2833
- *auth_type* can be `double_sha1_password` (default), `sha256_password` or `no_password`.
2934
- When `MUST_CHANGE_PASSWORD` is set to `true`, the new user must change password at first login. Users can change their own password using the [ALTER USER](03-user-alter-user.md) command.
3035
- When you set a default role for a user using CREATE USER or [ALTER USER](03-user-alter-user.md), Databend does not verify the role's existence or automatically grant the role to the user. You must explicitly grant the role to the user for the role to take effect.

docs/en/sql-reference/10-sql-commands/00-ddl/02-user/04-user-create-role.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
title: CREATE ROLE
33
sidebar_position: 5
44
---
5+
import FunctionDescription from '@site/src/components/FunctionDescription';
56

6-
Create a new role.
7+
<FunctionDescription description="Introduced or updated: v1.2.703"/>
8+
9+
Creates a new role.
710

811
After creating roles, you can grant object privileges to the role, enable access control security for objects in the system.
912

@@ -12,8 +15,15 @@ See also: [GRANT](10-grant.md)
1215
## Syntax
1316

1417
```sql
15-
CREATE ROLE [ IF NOT EXISTS ] <role_name> [ COMMENT = '<string_literal>' ]
18+
CREATE ROLE [ IF NOT EXISTS ] <name> [ COMMENT = '<string_literal>' ]
1619
```
20+
21+
- The `<name>` cannot contain the following illegal characters:
22+
- Single quote (')
23+
- Double quote (")
24+
- Backspace (\b)
25+
- Form feed (\f)
26+
1727
## Examples
1828

1929
```sql

0 commit comments

Comments
 (0)