if i had a query such as
select * from tbl_foo where name = 'sarmen'
and this table has multiple instances of name = sarmen how can i virtually assign row numbers to each row without having to create a column that auto incriments? i have a reason for what im doing and dont need an auto_incrimented col in my example.
so if each row is assign a virtual row number through sql or maybe php i will be able to print out the first row or the last row anytime i need to.
thnx
question from:https://stackoverflow.com/questions/3217217/grabbing-first-row-in-a-mysql-query-only