Both cursor.execute() and cursor.executemany() return the number of rows
affected.

Here is a link to the documentation:
http://mysql-python.sourceforge.net/MySQLdb-1.2.2/public/MySQLdb.cursors.BaseCursor-class.html#execute

Ian

On 4/26/07, Carl K <[EMAIL PROTECTED]> wrote:

using MySQLdb, I do cursor.execute("update...")

How can I tell how many rows were affected ?

Carl K
--
http://mail.python.org/mailman/listinfo/python-list

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to