Skip to content

Commit

Permalink
Update 1.create-space.md (#1823)
Browse files Browse the repository at this point in the history
* Update 1.create-space.md

* Update 1.create-space.md
  • Loading branch information
abby-cyber committed Dec 23, 2022
1 parent f42f0aa commit 59c3e57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs-2.0/3.ngql-guide/9.space-statements/1.create-space.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@ CREATE SPACE [IF NOT EXISTS] <graph_space_name> (
### Clone graph spaces

```ngql
CREATE SPACE <new_graph_space_name> AS <old_graph_space_name>;
CREATE SPACE [IF NOT EXISTS] <new_graph_space_name> AS <old_graph_space_name>;
```

| Parameter | Description |
| :--- | :--- |
|`IF NOT EXISTS`|Detects if the new graph space exists. If it does not exist, the new one will be created. The graph space existence detection here only compares the graph space name (excluding properties).|
| `<new_graph_space_name>` | The name of the graph space that is newly created. The name of the graph space starts with a letter, supports 1 to 4 bytes UTF-8 encoded characters, such as English letters (case-sensitive), digits, and Chinese characters, but does not support special characters except underscores. For more information, see [Keywords and reserved words](../../3.ngql-guide/1.nGQL-overview/keywords-and-reserved-words.md). When a new graph space is created, the schema of the old graph space `<old_graph_space_name>` will be cloned, including its parameters (the number of partitions and replicas, etc.), Tag, Edge type and native indexes. |
| `<old_graph_space_name>` | The name of the graph space that already exists. |

Expand Down

0 comments on commit 59c3e57

Please sign in to comment.