| | |
Selecting a certain number of results from a specified row
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
Views: 424 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for MySQL
"use" .db 1 ajax alphabet amazon aws camparingtocolumns cascade cast code convert count count(col) data database delete design distinct ec2 eliminate enter error form generator html images innerjoins insert join keyword keywords matchingcolumns multiple multipletables mysql mysqldatetimeordermax() mysqlindex mysqlinternalqueries mysqlquery mysqlsearch noob number open operand oracle order parse pdf php print query recursive relationaldatabases relationship relationships remove reorderingcolumns resultset retrieve script search select simpledb sort sql statement string syntax table tree type-conversion update values welsh





