MySQLdb and Cursor

Gerhard Häring gh at ghaering.de
Thu Oct 9 09:01:48 EDT 2003


Michel Combe wrote:
> Hi all,
> 
> I'm writing a program that will read an ASCII file periodically and update
> several tables in a MySQL database.
> My question is "Can I use the same cursor for several SQL requests (SELECT
> and INSERT) or do I have to close the cursor between 2 requests ?".

You can use the same cursor object.

-- Gerhard





More information about the Python-list mailing list