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;








沒有留言:

張貼留言

線上編程-Wokwi

 線上編程-Wokwi https://sites.google.com/ism.edu.mo/f4dat/topic1-arduino%E5%9F%BA%E6%9C%AC%E6%87%89%E7%94%A8/1-0-%E7%B7%9A%E4%B8%8A%E7%B7%A8%E7%...