There is a student table with table fields including id, name, parent_id, createDate, etc. Now we need to modify the names of students with the same name under the same parent_id based on parent_id, name, to ensure that they no longer exist under the same parent_id. How to deal with duplicate names
This is to find duplicate students. As for how to modify it, it’s up to you.
Supplement:
The modification is to sort according to createDate, and then add the sorted serial number after the name
This is the result of my own test: