摘要:
我采用的是MySQLdb操作的MYSQL数据库。先来一个简单的例子吧:?12345678910importMySQLdbtry:conn=MySQLdb.connect(host='localhost',user='root',passwd='root',db='test',port=3306)cur=conn.cursor()cur.execute('select * from user')cur.close()conn.close()exceptMySQLdb.Error,e:print"Mysql 阅读全文
posted @ 2012-11-12 21:09
lhj588
阅读(367)
评论(0)
推荐(0)

浙公网安备 33010602011771号