I am looking to do the opposite of the solution listed here:
MySQL Insert row, on duplicate: add suffix and re-insert
by: https://stackoverflow.com/users/296452/andreas-wederbrand
I want to append the suffixes to the older (existing) value(s) in the table.
Hence I would have this result:
And if I try to insert dude again, the trigger will check if it exists, then append the next available (-3 in this case) to the existing one, and insert the newest dude WITHOUT a suffix:
Is this possible?
Thanks in advance. Chris