I have a table with a column named ID
. This ID
is not Auto Increment nor is it a primary key, but it follows a numeric sequence (eg 1, 2, 3, 4, 5 ...).
I need to include or delete in a variable position, recalculate the IDs and do update
. Example:
- If DELETE or ID 2, the next IDs subtract 1. Where
3
turns2
,4
turns3
, etc.
The same thing when INCLUDING in a variable position. Any idea how to do it?