MySQL Forums
Forum List  »  Newbie

Getting to row number
Posted by: Matthew Reynolds
Date: July 27, 2005 11:27PM

Hiya all

I'm just wondering if there's a way to returning the row number of a particular row based from a WHERE clause.

So if I were to do a "SELECT * FROM dbname WHERE id='foo'" how can I find out what row number it is using a different SQL query? Or maybe a PHP function?

Thanks!
Matt

Options: ReplyQuote


Subject
Written By
Posted
Getting to row number
July 27, 2005 11:27PM
July 28, 2005 01:29AM
November 25, 2008 05:54AM


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.