当前位置:网站首页>Node. JS ODBC connection PostgreSQL
Node. JS ODBC connection PostgreSQL
2022-04-23 15:26:00 【allway2】
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();
版权声明
本文为[allway2]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231525131111.html
边栏推荐
猜你喜欢
win10 任务栏通知区图标不见了
Machine learning - logistic regression
机器学习——逻辑回归
Advanced version of array simulation queue - ring queue (real queuing)
Detailed explanation of redirection and request forwarding
G007-hwy-cc-estor-03 Huawei Dorado V6 storage simulator construction
Tun equipment principle
Differential privacy (background)
Detailed explanation of C language knowledge points - data types and variables [2] - integer variables and constants [1]
Mysql database explanation (VII)
随机推荐
Openstack theoretical knowledge
Grep was unable to redirect to the file
JUC learning record (2022.4.22)
JS -- realize click Copy function
[thymeleaf] handle null values and use safe operators
Educational Codeforces Round 127 A-E题解
win10 任务栏通知区图标不见了
深度学习调参的技巧
Llvm - generate for loop
Openfaas practice 4: template operation
TLS / SSL protocol details (30) RSA, DHE, ecdhe and ecdh processes and differences in SSL
YML references other variables
如何设计一个良好的API接口?
MySQL sync could not find first log file name in binary log index file error
Detailed explanation of C language knowledge points - data types and variables [2] - integer variables and constants [1]
Explanation 2 of redis database (redis high availability, persistence and performance management)
Subnet division of flannel principle
Llvm - generate addition
Tencent has written a few words, Ali has written them all for a month
群体智能自主作业智慧农场项目启动及实施方案论证会议