Hey guys, I was wondering what the query is to return the current row # from a mysql database. I have a table that uses and auto incriment ID field to relate to some other tables but i'd like to select the actual row number based off of that unique id.
so say id 45 is the first in the table i'd like something like
Select ROWNUMBER from TABLE Where id=45;
and get the number 1 in result.
anyone know how to go about this?