[newbie] MySQL : How to check if no row returned?

Jane Doe jane.doe at acme.com
Fri Jul 25 13:59:12 EDT 2003


On Thu, 24 Jul 2003 21:05:13 GMT, "Steve Holden"
<sholden at holdenweb.com> wrote:
>Alternatively, you can observer that the fetchall() method will return an
>empty list, and use
>
>    if not rows:
>        # empty set returned

Thx to you both. That did it :-)

JD.




More information about the Python-list mailing list