python PyGreSQL
postgres 官方推荐的python Postgres SQL 编程接口
下载地址:http://www.pygresql.org/readme.html
ex
- import pg
- conn = pg.connect(dbname='zz', host='10.20.60.90', user='postgres', passwd='postgres')
- data = conn.query('select version();').getresult()
- print data
没有评论 ▼