Cursor navigation

Andy Dustman farcepest at gmail.com
Tue Jul 19 16:06:57 EDT 2005


TA wrote:
> Hi,
>
> This might be a silly question, but I was wondering how you would navigate
> backwards in a PostgreSQL cursor when the Python DB-API 2.0 allows records
> to be fetched in a forward-only manner?

This is untrue: cursor.scroll() is an optional DB-API 2.0 extension.

http://www.python.org/peps/pep-0249.html

MySQLdb supports this, but I do not know about your case.




More information about the Python-list mailing list