--- sidebar_label: OpentsDB Telnet 协议 title: OpentsDB Telnet 协议 --- import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; import JavaTelnet from "./_java_opts_telnet.mdx"; import PyTelnet from "./_py_opts_telnet.mdx"; import GoTelnet from "./_go_opts_telnet.mdx"; import RustTelnet from "./_rust_opts_telnet.mdx"; import NodeTelnet from "./_js_opts_telnet.mdx"; import CsTelnet from "./_cs_opts_telnet.mdx"; import CTelnet from "./_c_opts_telnet.mdx"; ## 示例代码 以上示例代码会自动创建 2 个超级表, 每个超级表有 4 条数据。 ```cmd taos> use test; Database changed. taos> show stables; name | created_time | columns | tags | tables | ============================================================================================ meters.current | 2022-03-30 17:04:10.877 | 2 | 2 | 2 | meters.voltage | 2022-03-30 17:04:10.882 | 2 | 2 | 2 | Query OK, 2 row(s) in set (0.002544s) taos> select tbname, * from `meters.current`; tbname | ts | value | groupid | location | ================================================================================================================================== t_0e7bcfa21a02331c06764f275... | 2022-03-28 09:56:51.249 | 10.800000000 | 3 | Beijing.Haidian | t_0e7bcfa21a02331c06764f275... | 2022-03-28 09:56:51.250 | 11.300000000 | 3 | Beijing.Haidian | t_7e7b26dd860280242c6492a16... | 2022-03-28 09:56:51.249 | 10.300000000 | 2 | Beijing.Chaoyang | t_7e7b26dd860280242c6492a16... | 2022-03-28 09:56:51.250 | 12.600000000 | 2 | Beijing.Chaoyang | Query OK, 4 row(s) in set (0.005399s) ```