标签:name 链接 数据库 div python ase exe SQ postgre
sudo apt-get install build-dep python-psycopg2
pip install psycopg2
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import psycopg2
#连接数据库
conn = psycopg2.connect(database="dbname", user="username", password="userpwd", host="dbaddress", port="5432")
cur = conn.cursor()
cur.execute("update table set name=‘‘")
conn.commit()
cur.close()
conn.close()
标签:name 链接 数据库 div python ase exe SQ postgre
原文地址:https://www.cnblogs.com/kerwincui/p/9250780.html