跳转至

SHOW CREATE TAG/EDGEGraph

SHOW CREATE TAG语句显示指定标签的基本信息。标签的更多详细信息,请参见Graph。

SHOW CREATE EDGE语句显示指定边类型的基本信息。边类型的更多详细信息,请参见Graph。

语法Graph

SHOW CREATE {TAG <tag_name> | EDGE <edge_name>};

示例Graph

nebula> SHOW CREATE TAG player;
+----------+-----------------------------------+
| Tag      | Create Tag                        |
+----------+-----------------------------------+
| "player" | "CREATE TAG `player` (            |
|          |  `name` string NULL,              |
|          |  `age` int64 NULL                 |
|          | ) ttl_duration = 0, ttl_col = ""  |
+----------+-----------------------------------+

nebula> SHOW CREATE EDGE follow;
+----------+-----------------------------------+
| Edge     | Create Edge                       |
+----------+-----------------------------------+
| "follow" | "CREATE EDGE `follow` (           |
|          |  `degree` int64 NULL              |
|          | ) ttl_duration = 0, ttl_col = """ |
+----------+-----------------------------------+

最后更新: March 29, 2021
Back to top