Query regarding Python sybase module

skip at pobox.com skip at pobox.com
Tue Mar 24 14:10:37 CET 2009

    Srini> Does Sybase Python driver module implement multiple result sets
    Srini> from a single command?

I've used it to get multiple result sets from stored procedures, so I guess
the answer would be "yes".  Something like this:

    >>> params = curs.callproc('stored_procedure', params)
    >>> while True:
    ...   rows = curs.fetchall()
    ...   print rows
    ...   if not curs.nextset():
    ...     break

Skip Montanaro - skip at pobox.com - http://www.smontanaro.net/

More information about the Python-list mailing list