当前位置:网站首页>Nodered系列—写入tDengine超级表,自动创建子表
Nodered系列—写入tDengine超级表,自动创建子表
2022-08-11 05:20:00 【鲸鱼姐】
1. TDengine超级表创建如下
使用TD-workbench管理tDengine数据库数据_鲸鱼姐的博客-CSDN博客
2. nodered配置方法和文章一致
Nodered系列—使用mqtt写入国产数据库tDengine_鲸鱼姐的博客-CSDN博客
3. 修改function语句如下
var plc1=msg.payload.plc1;
var plc2=msg.payload.plc2;
var plc3=msg.payload.plc3;
var plc4=msg.payload.plc4;
var plc_id=msg.payload.plc_id;
msg.payload ="insert into test.plc using test.meters tags('timenow','plc1','plc2') values (now," + plc1 + "," + plc2 + ");"
return msg;
4. 运行结果TDengine超级表内容如下
子表自动创建,内容如下
边栏推荐
猜你喜欢
随机推荐
07-JS事件:事件类型、事件对象、事件传播、事件委托
DAPP系统开发及智能合约实现技术
CSDN 社区内容创作规范
生成用户的唯一标识(openId),并且加密
显示桌面该有的图标设置
npm install 时报 npm ERR Cannot read properties of null (reading ‘pickAlgorithm‘)
error: The following untracked working tree files would be overwritten by merge: .hbuilderx/launch
C语言的二维数组初始化的几种方式介绍(私藏大数组初始化方式)
C language learning record--variable basic type and memory size
C语言——文件操作详解(1)
实例分析MySQL四种隔离级别的区别
《现代密码学》学习笔记——第三章 分组密码 [三]分组密码的运行模式
C语言——文件操作(2)文件的读写操作
云计算学习笔记——第三章 计算虚拟化[二]
函数:万能的百宝箱
C语言动态内存分配(1)三种函数讲解
C语言文件操作——数据文件类型、文件判断、文件缓冲区详解
LeetCode43. String multiplication (this method can be used to multiply large numbers)
Windows64位MySQL配置式安装(绿色版)
Install different versions of MinGW (g++/gcc) and the configuration of the corresponding clion editor under Win