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
相關文章
相關標籤/搜索