MySQL Forums
Forum List  »  Newbie

Re: retrieve record position
Posted by: Peter Brawley
Date: July 31, 2007 07:49AM

SET @i=0;
SELECT x FROM (
  SELECT @i:=@i+1 AS x,name 
  FROM tbl
  ORDER BY datum
) AS r where r.name='Paul';
PB

Options: ReplyQuote


Subject
Written By
Posted
July 31, 2007 07:26AM
Re: retrieve record position
July 31, 2007 07:49AM


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.