2024年4月2日 星期二

Using PostgreSQL with Node-RED

 Using PostgreSQL with Node-RED

1) 安裝 pgadmin III

2) node-red 安裝 節點 node-red-contrib-re-postgres : postgres

3) 在pgaminIII新增database 名稱

     例如DataBase2024










利用 程式 新增table

msg.payload = `CREATE TABLE SQLusers(

    user_id serial PRIMARY KEY,

    name  TEXT,

    age INTEGER,

    country TEXT

)`


return msg;








沒有留言:

張貼留言

作業2 MQTT (Relay + DHT22) 控制 ------- 利用Node-Red

作業2 MQTT (Relay + DHT22) 控制 ------- 利用Node-Red 1) 安裝Node-Red  https://ithelp.ithome.com.tw/articles/10201795 https://www.youtube.com/watch?v...