changing existing duplicate entries in mysql
Posted
by Mladen
on Stack Overflow
See other posts from Stack Overflow
or by Mladen
Published on 2010-05-10T23:16:29Z
Indexed on
2010/05/10
23:24 UTC
Read the original article
Hit count: 164
mysql
|duplicates
sorry for the (probably) noob question, but I', new at this stuff.
i have a table that has column 'position', and I want to, when inserting a new row, change positions of every row that has position lower than row that is inserted. for example, if I add row with position 4, if there is a duplicate, it should become 5, 5 should shift to 6 and so on...
also, is there a way to get highest value for column besides testing it in every row via php?
© Stack Overflow or respective owner