mysql "rows affected"
Ian Clark
turbana at gmail.com
Thu Apr 26 19:59:37 EDT 2007
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 <carl at personnelware.com> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070426/b27f9973/attachment.html>
More information about the Python-list
mailing list