I have one table in MYSQL It has data like
Id Name 1 test 1 test 1 test123 2 test222 3 test333
I want the data like
Id Name RowN
UPDATE tablename SET RowNum=(SELECT COUNT(Id) FROM tablename WHERE Id=Name)