Python数据库链接池实例——PooledDB

不用链接池的MySQL链接方法python import MySQLdb conn= MySQLdb.connect(host='localhost',user='root',passwd='pwd',db='myDB',port=3306) cur=conn.cursor() SQL="select * from table1" r=cur.execute(SQL) r=cur.fetcha
相关文章
相关标签/搜索