grumfish wrote:

connection = MySQLdb.connect(host="localhost", user="root", passwd="pw", db="japanese")
cursor = connection.cursor()
cursor.execute("INSERT INTO edict (kanji, kana, meaning) VALUES (%s, %s, %s)", ("a", "b", "c") )
connection.close()

Just a guess "in the dark" (I don't use MySQL): is "commit" implicit, or do you have to add it yourself?


-pu
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to