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,
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
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