MySQL Forums
Forum List  »  Newbie

Re: your ranked out #x of X accounts?
Posted by: Ronan Cashell
Date: July 21, 2011 04:47AM

This can be done through user session variables.

SET @rank = 0;

SELECT @rank:=@rank+1 as rank, table.*
FROM table ....

Ronan Cashell
Senior Oracle/MySQL Administrator
IT Integrated Business Solutions
http://www.it-iss.com

Options: ReplyQuote


Subject
Written By
Posted
Re: your ranked out #x of X accounts?
July 21, 2011 04:47AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.