MySQLdb: execute query results...

Sheila King sheila at spamcop.net
Mon Sep 1 12:35:24 EDT 2003


On Sun, 31 Aug 2003 19:14:00 -0500, mackstann <mack at incise.org> wrote in
comp.lang.python in article
<mailman.1062375303.22663.python-list at python.org>:

> Looked in site-packages/MySQLdb/cursors.py, and it seems you are
> correct.
> 
> >>> from MySQLdb import cursors
> >>> help(cursors.BaseCursor.execute)
> 
> Help on method execute in module MySQLdb.cursors:
> 
> execute(self, query, args=None) unbound MySQLdb.cursors.BaseCursor
> method
>     Execute a query.
> 
> [...]
> 
>     Returns long integer rows affected, if any
> 
> HTH,

Thanks for the confirmation. I didn't look at the source code. :/

Much appreciated,


-- 
Sheila King
http://www.thinkspot.net/sheila/
http://www.k12groups.org/




More information about the Python-list mailing list