|
Of course, it is best to change the above procedure to trigger. Then, after you delete the data, it will automatically update the relevant values for you. You can use select * from table_name order by seatno!
Remember to create the index. This method is a bit slow when the amount of data is large and the data is read and written frequently. |
|