文章目录
# Node-RED
https://iothub.org.cn/docs/nodered/
https://iothub.org.cn/docs/nodered/app/app-postgresql/
一、概述
1.PostgreSQL


82.157.166.86
33047
postgres
postgres
2.node-red-contrib-postgresql
https://flows.nodered.org/node/node-red-contrib-postgresql



二、Node-RED
1.查询数据
1.1.配置流程




1.2.测试

2.插入数据
2.1.配置流程
INSERT INTO student(name,sex) VALUES('aaa', 'bbb');
INSERT INTO student VALUES('aaa', 'bbb');

2.2.测试


3.更新数据
3.1.配置流程
UPDATE student SET sex='45' where name = 'tom'

3.2.测试


4.删除数据
略
# Node-RED
https://iothub.org.cn/docs/nodered/
https://iothub.org.cn/docs/nodered/app/app-postgresql/

本文详细介绍了如何在Node-RED中使用node-red-contrib-postgresql模块进行PostgreSQL数据库的操作,包括查询、插入、更新和删除数据的配置及测试步骤。
2280

被折叠的 条评论
为什么被折叠?



