Both cursor.execute() and cursor.executemany() return the number of rows affected.<br><br>Here is a link to the documentation:<br><a href="http://mysql-python.sourceforge.net/MySQLdb-1.2.2/public/MySQLdb.cursors.BaseCursor-class.html#execute">
http://mysql-python.sourceforge.net/MySQLdb-1.2.2/public/MySQLdb.cursors.BaseCursor-class.html#execute</a><br><br>Ian<br><br><div><span class="gmail_quote">On 4/26/07, <b class="gmail_sendername">Carl K</b> <<a href="mailto:carl@personnelware.com">
carl@personnelware.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">using MySQLdb, I do cursor.execute("update...")
<br><br>How can I tell how many rows were affected ?<br><br>Carl K<br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</a><br></blockquote></div><br>