In MySQL, how would I find the row number of the first occurrence of a value?
E.G., if the data returned by my query was
value1
value1
value1
value1
value2
value2
value1
I would want to return 1 is searching on value1, and 5 if searching on value2.
Is this possible? I can't find any documentation on it.