I'm using MySQLdb library to connect to MySQL within my Python script.
(Ref: http://mysql-python.sourceforge.net/MySQLdb.html ).
I would like to learn if there is a way to jump to the last record in a resultset using Python?
In other words, I would like to move my cursor to the last record in the resultset.
CURSORin SQL. Unfortunately most ofcursorimplementations in Python are the client side cursor (aka fake cursor). It doesn't issueDECLARE CURSOR, hence no support ofMOVE. The only server side implementation I'm aware of is the named cursor ofpsycopg2for PostgreSQL.