Re: db.commit() to take effect

2006-12-02 Thread Maurice LING
John Machin wrote: > progman wrote: > >>I was testing the python+mysql >> >>here are my sample codes: >> >>import MySQLdb >>from pprint import pprint >>db = MySQLdb.connect(host="localhost", user="root", passwd="password", >>db="database") >>cursor = db.cursor() >>cursor.ex

Re: db.commit() to take effect

2006-12-02 Thread John Machin
progman wrote: > I was testing the python+mysql > > here are my sample codes: > > import MySQLdb > from pprint import pprint > db = MySQLdb.connect(host="localhost", user="root", passwd="password", > db="database") > cursor = db.cursor() > cursor.execute('update promo set

db.commit() to take effect

2006-12-02 Thread progman
I was testing the python+mysql here are my sample codes: import MySQLdb from pprint import pprint db = MySQLdb.connect(host="localhost", user="root", passwd="password", db="database") cursor = db.cursor() cursor.execute('update promo set date=100") --