Home > Mobile >  Get a chosen set of rows from a MySQL table
Get a chosen set of rows from a MySQL table

Time:01-03

I have a table with thousands of rows and it keeps growing. I want a query so I can easily display a chosen set of rows e.g:

  • rows 1-50
  • rows 51-100
  • etc.

How can I write it?

CodePudding user response:

In this case you should use enter image description here

SELECT column_name(s) FROM table_name WHERE condition LIMIT number;

  • Related