View Single Post
  #3  
Old 10-25-2008, 04:03 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

Code:
SET @idindex = 0;
SELECT skill_id, name, (@idindex:=@idindex+1) FROM altadv_vars ORDER BY skill_id ASC;
Works on 5.0 not sure about other mysql vers.
Reply With Quote