2011年10月31日

python中的cursor[备忘]

摘要: import MySQLdbconn = MySQLdb.connect(host='localhost', user='root', passwd='123456, db='dbname', charset='utf8')cursor = conn.cursor()cursor.execute(sql)成功result为1;失败为0。此时,cursor就是一个Cursor对象,这个cursor是... 阅读全文

posted @ 2011-10-31 11:23 Cheney Shen 阅读(1278) 评论(0) 推荐(0) 编辑

导航