How to start a transaction?

Diez B. Roggisch deets at nospam.web.de
Tue Jan 20 12:35:34 CET 2009


Hussein B wrote:

> Hey,
> I know the basics of interacting with databases in Python.
> How to start a transaction in case I want to group a couple of insert
> and update statements into a single operation?

Please read the python database API documentation:

http://www.python.org/dev/peps/pep-0249/

And make sure your database supports transactions.

Diez



More information about the Python-list mailing list