利用Python进行postgres、mysql数据库基本操作(建表、插入数据、删除数据、添加字段注释)
一、 postgres数据库基本操作
共有建表、插入数据、、查询数据、删除数据、添加字段注释等5种操作,分为4步
import psycopg2
#step1
conn=psycopg2.connect(database='gndsj',user='postgres',password='postgres',host='172.0.0.88',port='5432')
cursor=conn.c...
原创
2020-05-06 18:00:37 ·
822 阅读 ·
0 评论