Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
75a6bc12
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
75a6bc12
编写于
8月 09, 2022
作者:
sangshuduo
浏览文件
操作
浏览文件
下载
差异文件
Merge branch '2.6' into feat/sangshuduo/TD-14141-update-taostools-for2.6
上级
a8c0e03f
67856040
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
3 addition
and
3 deletion
+3
-3
docs/zh/05-get-started/index.md
docs/zh/05-get-started/index.md
+3
-3
未找到文件。
docs/zh/05-get-started/index.md
浏览文件 @
75a6bc12
...
@@ -132,7 +132,7 @@ Query OK, 2 row(s) in set (0.003128s)
...
@@ -132,7 +132,7 @@ Query OK, 2 row(s) in set (0.003128s)
taosBenchmark
taosBenchmark
```
```
该命令将在数据库 test 下面自动创建一张超级表 meters,该超级表下有 1 万张表,表名为 "d0" 到 "d9999",每张表有 1 万条记录,每条记录有 (ts, current, voltage, phase) 四个字段,时间戳从 "2017-07-14 10:40:00 000" 到 "2017-07-14 10:40:09 999",每张表带有标签 location 和 groupId,groupId 被设置为 1 到 10, location 被设置为 "
California.SanFrancisco" 或者 "California.LosAngeles"
。
该命令将在数据库 test 下面自动创建一张超级表 meters,该超级表下有 1 万张表,表名为 "d0" 到 "d9999",每张表有 1 万条记录,每条记录有 (ts, current, voltage, phase) 四个字段,时间戳从 "2017-07-14 10:40:00 000" 到 "2017-07-14 10:40:09 999",每张表带有标签 location 和 groupId,groupId 被设置为 1 到 10, location 被设置为 "
San Francisco" 或者 "Los Angeles"等城市名称
。
这条命令很快完成 1 亿条记录的插入。具体时间取决于硬件性能,即使在一台普通的 PC 服务器往往也仅需十几秒。
这条命令很快完成 1 亿条记录的插入。具体时间取决于硬件性能,即使在一台普通的 PC 服务器往往也仅需十几秒。
...
@@ -154,10 +154,10 @@ taos> select count(*) from test.meters;
...
@@ -154,10 +154,10 @@ taos> select count(*) from test.meters;
taos
>
select
avg
(
current
),
max
(
voltage
),
min
(
phase
)
from
test
.
meters
;
taos
>
select
avg
(
current
),
max
(
voltage
),
min
(
phase
)
from
test
.
meters
;
```
```
查询 location="
California.San
Francisco" 的记录总条数:
查询 location="
San
Francisco" 的记录总条数:
```
sql
```
sql
taos
>
select
count
(
*
)
from
test
.
meters
where
location
=
"
California.San
Francisco"
;
taos
>
select
count
(
*
)
from
test
.
meters
where
location
=
"
San
Francisco"
;
```
```
查询 groupId=10 的所有记录的平均值、最大值、最小值等:
查询 groupId=10 的所有记录的平均值、最大值、最小值等:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录