Menu

forward and back in the table?

Help
2009-09-10
2012-09-19
  • rafael massao

    rafael massao - 2009-09-10

    Sorry my English!

    Good morning!
    I wonder how I can move forward and back a row in the table, I was able to move using the fetchone come back I'm not getting.
    Sorry the question.
    Thank all

    massao

     
    • rafael massao

      rafael massao - 2009-09-10

      Sorry, I forgot:

      Linux Python 2.6 using MySQLdb.cursors.Cursor

       
  • Luis R. Rojas

    Luis R. Rojas - 2009-09-12

    You could try the scrool function in the cursor object.

    cursor = db.cursor()

    cursor.scroll(<POS>,mode='<MODE>')

    where MODE is either relative or absolute, and POS is the row position.

     
  • rafael massao

    rafael massao - 2009-09-13

    Hello, I had achieved using cursor.fetchall

    cursor.fetchall row = ()

    print row

    print row

    print row

    Thanks anyway!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.