Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use 'limit' in combination of 'order by'? 1

Status
Not open for further replies.

lcs01

Programmer
Aug 2, 2006
182
US
I want to write a sql like this:

Code:
select * from mytable limit 10 order by pid

I know the above sql has a syntax error, i.e. you can not use 'limit' together with 'order by'. But, is there a way to perform this kind of task?

Many thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top