I have a question about the database.
My problem is that I do not want to be able to add a record with an existing order.
Instead I want to make room for the new record and the others increase in one order for it
I have a table in which it contains a field called orden
and the data is recorded 1 by 1 (1,2,3,4,5,6,7, etc), but when inserted in the table a new record I insert an order 10 but that already exists what I want to do is that at the time of inserting the other records, add them 1 from the one that was registered.
Therefore, I would like this new order value to increase by 1 if this is the case, or the seguence that already exists, that is, will continue.
if the records are in order 55, and I put order 55, this or pass it to 56.