Swap unique indexed column values in database

前端 未结 12 972
伪装坚强ぢ
伪装坚强ぢ 2020-12-03 06:36

I have a database table and one of the fields (not the primary key) is having a unique index on it. Now I want to swap values under this column for two rows. How could this

12条回答
  •  日久生厌
    2020-12-03 06:58

    Oracle has deferred integrity checking which solves exactly this, but it is not available in either SQL Server or MySQL.

提交回复
热议问题