I want to update the id column in a table in MySQL using a query to append something in the value if exists already.
I ran the following query to find duplicates: select id, count(*) as count from temp_table group by id having count > 1;
Here are the duplicates:
id count
5527 4
Current State:
id
5527
12797
5527
256
5527
12803
5527
255
Desired State:
id
5527
12797
55272
256
55273
12803
55274
255