How to read a single sequential record from MySQL?
I'm writing an application in MySQL and Python that must display several thousand records from a database. I wanted to use the MySQL "SELECT" command to select the records I want to see, and then use the "ORDER BY" directive to retrieve them in the correct order. But my python program will read in the entire select set into an array which may grow too large to process properly. Ideally, I want to retrieve a single record, display it, then retrieve the next record.
Can somebody suggest the MySQL command that will retrieve a single record in a sequence, and allow for then retrieving the next record?
|