The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
mySQL skip n records?
Is it possible to skip a set amount of records? For instance, say I run a query and sort the data but don't want to include the Top 10 posters, but everyone from 11 on -- can this be done in SQL?
If so, would I use the LIMIT and OFFSET commands? If not, what do I use? |
#2
|
||||
|
||||
You don't need to use LIMIT, you only need to use the OFFSET clause.
|
#3
|
|||
|
|||
Or just: LIMIT 10,x
Where x is the number of rows to retrieve. |
#4
|
||||
|
||||
That would work if you knew how many rows there are.
|
#5
|
|||
|
|||
Which I did, since I sorted them to get the Top n. I send up using the LIMIT x, y command like Marco said. Sorry for not replying that I figured it out.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|