Results 1 to 4 of 4

Thread: how to make mysql show one page at a time

  1. #1
    Join Date
    May 2006

    how to make mysql show one page at a time

    Hi everyone. I'm using MySQL Command Line Client on a Windows platform and I've created a table with 61 rows. When I perform the

    select * from games;

    query, I get the entire table, but it scrolls passed my window. Is there a way I can see the table one page at a time. I read somewhere that if I was on a Unix system I can pipe it to a "more" utility but I'm on a Windows machine so what should I do? Thanks for any help.

  2. #2
    Join Date
    Aug 2005
    The Garden State
    mysql has a limit keyword that will only show you blocks of results.
    select * from games limit offset,numberToShow;
    Acceptable Use | SQL Forum FAQ | celery is tasteless | twitter

    celery is tasteless - currently needing some UI time

  3. #3
    Join Date
    Aug 2006
    just a note offset starts at 0, so if you do select * from games limit 1,10; it's going to start at your second record and count 10 from there, limit 0,10 will start at the first record in the table

  4. #4
    Join Date
    May 2006
    I see. Thanks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center