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!

MYSQL -Top 6 -Return the top 6 rows

Status
Not open for further replies.

JimFL

Programmer
Jun 17, 2005
131
GB
Hi,

Can anybody help me to produce similar functionality to the top T-SQL command.

In sql server you can return the top 6 rows of a bigger query by using the top command.
For example

select top 6 .*
from countries

Im sure this is quite straight forward but I cant find the syntax.

James

 
select * from countries limit 6" is probably what you want. You can also include an "order by" clause to determine what's considered at the "top
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top