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