Re: [Python] Problemi in scrittura DB con executemany()

2008-10-10 Per discussione Francesco Martino
Maria Grazia Toffetti ha scritto: > Starting with 1.2.0, MySQLdb disables autocommit by default, as > required by the DB-API standard (PEP-249). If you are using InnoDB > tables or some other type of transactional table type, you'll need to > do connection.commit() before closing the connection,

Re: [Python] Problemi in scrittura DB con executemany()

2008-10-07 Per discussione Maria Grazia Toffetti
guarda se è il tuo caso http://mysql-python.sourceforge.net/FAQ.html#other-errors Starting with 1.2.0, MySQLdb disables autocommit by default, as required by the DB-API standard (PEP-249). If you are using InnoDB tables or some other type of transactional table type, you'll need to do connection.

Re: [Python] Problemi in scrittura DB con executemany()

2008-10-06 Per discussione Francesco Martino
Chiedo scusa ma ho riportato il codice in modo errato. Di seguito si trova quello corretto: import MySQLdb db = MySQLdb.connect(host = 'localhost', db = 'nome_db', user = 'user', pas

[Python] Problemi in scrittura DB con executemany()

2008-10-06 Per discussione Francesco Martino
Salve a tutti, chiedo aiuto perchè ho difficoltà nel creare una nuova tabella in un database già esistente. Come DB uso MySql, che gira in locale; quello che voglio fare è prendere alcuni dati dal DB esistente, e creare una nuova tabella che immagazzini questi dati,. Riporto il codice che ho sc