Jump to content

get largest number from mysql row


Reaper0167

Recommended Posts

Is there any easy way to get the largest number from a mysql row?

 

I have a column in mysql called count. and each users number could be different.

 

If i want to display 10 results starting at the largest number, what would be the best way?

 

select max(row_you_want) from table where condition; This it's the best way.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.