const odbc = require('odbc');
async function queryData() {
const connection = await odbc.connect('DSN=PostgreSQL35W;UID=postgres;PWD=postgres;');
const data = await connection.query('SELECT * FROM bindata');
console.log(data);
}
queryData();
Node.js ODBC连接PostgreSQL
最新推荐文章于 2024-08-28 14:02:01 发布