跳转至

SHOW CREATE TAG/EDGE

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

SHOW CREATE EDGE语句显示指定 Edge type 的基本信息。Edge type 的更多详细信息,请参见 CREATE EDGE

语法

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

示例

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 = """ |
+----------+-----------------------------------+

最后更新: September 6, 2024