当前位置:网站首页>Node.js ODBC连接PostgreSQL
Node.js ODBC连接PostgreSQL
2022-04-23 15:25: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://blog.csdn.net/allway2/article/details/124362910
边栏推荐
- Sword finger offer (2) -- for Huawei
- UML学习_day2
- Openstack command operation
- 【thymeleaf】处理空值和使用安全操作符
- Mysql连接查询详解
- Set onedrive or Google drive as a drawing bed in upic for free
- Differential privacy (background)
- Analysis of common storage types and FTP active and passive modes
- Baidu written test 2022.4.12 + programming topic: simple integer problem
- Subnet division of flannel principle
猜你喜欢
MultiTimer v2 重构版本 | 一款可无限扩展的软件定时器
重定向和请求转发详解
Mysql database explanation (IX)
激活函数的优缺点和选择
Wechat applet customer service access to send and receive messages
我的树莓派 Raspberry Pi Zero 2W 折腾笔记,记录一些遇到的问题和解决办法
On the day of entry, I cried (mushroom street was laid off and fought for seven months to win the offer)
Byte interview programming question: the minimum number of K
让阿里P8都为之着迷的分布式核心原理解析到底讲了啥?看完我惊了
Detailed explanation of redirection and request forwarding
随机推荐
PSYNC synchronization of redis source code analysis
让阿里P8都为之着迷的分布式核心原理解析到底讲了啥?看完我惊了
Basic operation of sequential stack
深度学习调参的技巧
Common interview questions of operating system:
MySQL sync could not find first log file name in binary log index file error
Alexnet model
How to write the keywords in the cover and title? As we media, why is there no video playback
Flink DataStream 类型系统 TypeInformation
重定向和请求转发详解
Hj31 word inversion
setcontext getcontext makecontext swapcontext
Three uses of kprobe
8.2 text preprocessing
MySQL query library size
Byte interview programming question: the minimum number of K
Detailed explanation of C language knowledge points -- first understanding of C language [1] - vs2022 debugging skills and code practice [1]
X509 certificate cer format to PEM format
Squid agent
API gateway / API gateway (II) - use of Kong - load balancing