I want to add multiple counter in other column. I have a two row in mysql database and i have multiple id in second column so i want to add counter like 1,2,3... in other column.
my screenshort are given below :
In image are 1889 are twice and i want these two means all duplicate value make increment with 1.
expected output : 1889 dell1 1889 dell2 1890 dell0 1891 dell0
Above 1889 are twice so output is 1889 dell1 ,1889 dell2. 1890 and 191 is single so output is 0 behind dell.
so i want increment with 1 behind dell.
if anyone know mysql query so please inform me.