I have a problem using the MySQLdb library. I\'m trying to insert values into my table but MySQL isn\'t showing them. What\'s more strange is the primary key is changing whe
When you execute statements that modify the database, you have to commit, as has already been answered. If you're only using SELECT, the you don't need to commit. Be careful with autocommit, because if someone else is working on the database and you have autocommit enabled, his/hers changes will be committed when you execute your script, even if he/she isn't finished or doesn't want to commit.