Python操作PostgreSQL
Python操作PostgreSQL
前提条件:用户计算机上安装了PostgreSQL数据库
安装psycopg2 –> pip install psycopg2
1 、 psycopg2.connect(database=”testdb”, user=”postgres”, password=”cohondob”, host=”127.0.0.1”, port=”5432”)...
原创
2018-04-03 10:32:47 ·
5777 阅读 ·
0 评论