[Tutor] Help with cursors please

Alan Harris-Reid aharrisreid at googlemail.com
Thu Feb 4 18:47:02 CET 2010


I have a SQLite cursor which I want to traverse more than once, eg...
for row in MyCursor:
then later...
for row in MyCursor:
Method2 is never run, I guess because the pointer is at the bottom of 
the row 'stack' after the first 'for' loop

How can I move the pointer back to the top of the stack?  Or do I have 
to reload the cursor first?

Any help would be appreciated.

More information about the Tutor mailing list