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 RowNum 1 test 1 1 test 2 1 test123 1 2 test222 1 3 test333 1
Means i want assign row number on group of Id and Name ?
what should the script for same?
This table definition will achieve what you want.
Populate table with data
Select data from table
Result
For doing it in a query here is a rather crude way of doing it.