跳转至

SHOW CREATE TAG/EDGEGraph

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

SHOW CREATE EDGE语句显示指定Edge type的基本信息。Edge type的更多详细信息,请参见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 = """ |
+----------+-----------------------------------+

最后更新: November 1, 2021
Back to top