song
(song)
1
【TDengine 使用环境】
测试
【TDengine 版本】
3.3.8.8
【操作系统以及版本】
Linux
【部署方式】容器/非容器部署
非容器
【集群节点数】
1
【集群副本数】
1
【描述业务影响】
3.3.8.8版本,ws连接有单个语句只有一个表的限制?使用ws连接当一条语句中同一张表名出现一次以上时会报(0x200):single table allowed in one stmt。而使用客户端连接方式时没有这种问题
【问题复现路径/shan】做过哪些操作出现的问题
【遇到的问题:问题现象及影响】
【资源配置】
【报错完整截图】(不要大段的粘贴报错代码,论坛直接看报错代码不直观)
是的,stmt 方式下,不支持同时有多个超级表。
请见官网文档:参数绑定写入 | TDengine 文档 | 涛思数据
请看上面给的官网文档链接中的示例代码,就是 多张子表 多条记录的例子。
song
(song)
5
在一张子表中为什么会出现相同时间戳的两条数据,不是应该会覆盖一条吗?
song
(song)
7
CREATE STABLE terminal_configuration_info (create_time TIMESTAMP, order_type INT COMPOSITE KEY, status INT, parameter VARCHAR(255), effective_date TIMESTAMP, receive_time TIMESTAMP, task_id INT, reason VARCHAR(255), creater_name VARCHAR(255)) TAGS (terminal_id BIGINT) SMA(create_time,order_type,status,parameter,effective_date,receive_time)
song
(song)
8
insert into
test_terminal_platform.terminal_configuration_info (
tbname,
terminal_id,
create_time,
order_type,
status,
parameter,
effective_date,
receive_time,
task_id,
reason,
creater_name
)
VALUES
(
‘configuration_987987’,
987987,
1766021329000,
21,
0,
null,
null,
null,
null,
null,
null
) (
‘configuration_987987’,
987987,
1766021329000,
20,
1,
null,
null,
null,
null,
null,
null
);
这是插入语句
创建的超级表使用了联合主键,order_type INT COMPOSITE KEY,因为两条记录order_type不同,当然可以插入两条。