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 ESP32 DHT22 & LED + Node-Red + Telegram

 Wokwi ESP32 DHT22 & LED +  Node-Red + Telegram  WOKWI程式 #include " WiFi.h " ; #include < PubSubClient.h > ; #include ...