| | |
Selecting a certain number of results from a specified row
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
As the title says, I'd like to select a certain number of rows from a table starting from a specified row.
So for example, I have a table with 250 rows and the rows are numbered incrementally using a column called 'ref'. I now want to select rows 51-100. How would I go about doing that?
So for example, I have a table with 250 rows and the rows are numbered incrementally using a column called 'ref'. I now want to select rows 51-100. How would I go about doing that?
This user has a spatula. We don't know why, but we are afraid.
1
#2 Oct 21st, 2009
I solved my problem by using the following:
mysql Syntax (Toggle Plain Text)
WHERE ref BETWEEN 1 AND 50
This user has a spatula. We don't know why, but we are afraid.
![]() |
Similar Threads
- Clean Previous Next Script for MySQL results (PHP)
- Ur help please!! (PHP)
- php search form with paged results proplem (PHP)
- selecting html table row for deletion (JavaScript / DHTML / AJAX)
- Not getting information from the database (PHP)
- Fatal error: require once (PHP)
- pagination not displaying results (PHP)
- Getting next and previous row in a MySQL set! (PHP)
Other Threads in the MySQL Forum
- Previous Thread: challenging query - Insert On duplicate field? not on duplicate key
- Next Thread: Best way to save image submitted via a form
| Thread Tools | Search this Thread |
agplv3 alfresco amazon api artisticlicense aws bizspark breathalyzer camparingtocolumns changingprices cmg communityjournalism contentmanagement contractors copyright count court crm database design developer development distinct drupal dui ec2 email enterprise eudora facebook form foss gartner gnu government gpl greenit groupware hiring hyperic images innerjoins insert ip joebrockmeier join keyword keywords kickfire laptop law legal license licensing linux maintenance managing mariadb matchingcolumns metron micromanage microsoft microsoftexchange mindtouch montywidenius mozilla multiple music mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlindex mysqlinternalqueries mysqlquery mysqlsearch news open-xchange opendatabasealliance opengovernment opensource oracle penelope priceupdating query referencedesign reorderingcolumns resultset saas select sharepoint simpledb sourcecode spotify sql sugarcrm syntax techsupport thunderbird transparency virtualization





