Php mysql update with a new unique id -


i update id of mysql row next free id available

easy explain can't figure out.

thank you

edit:

the point need have brand new id existing row still want keep inside row (lot of data). because third party system deals product payment accept order id once. seems logical me keep data if user cancels transaction , update id new attempt older id useless , tedious move data brand new record. can done non-auto-incremented id believe possible auto-incremented one. issue sure new id available 1 and, if possible, next available one.

if id auto increment can insert new record , delete old one. doesnt seem logical though. why need update id?


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -