SHOW CREATE TAG/EDGE

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

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

语法

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

示例

  1. nebula> SHOW CREATE TAG player;
  2. +----------+-----------------------------------+
  3. | Tag | Create Tag |
  4. +----------+-----------------------------------+
  5. | "player" | "CREATE TAG `player` ( |
  6. | | `name` string NULL, |
  7. | | `age` int64 NULL |
  8. | | ) ttl_duration = 0, ttl_col = "" |
  9. +----------+-----------------------------------+
  10. nebula> SHOW CREATE EDGE follow;
  11. +----------+-----------------------------------+
  12. | Edge | Create Edge |
  13. +----------+-----------------------------------+
  14. | "follow" | "CREATE EDGE `follow` ( |
  15. | | `degree` int64 NULL |
  16. | | ) ttl_duration = 0, ttl_col = """ |
  17. +----------+-----------------------------------+