sql - Order important update mysql query -
I have a table in which the primary key is "P", and a unique key "U" say "u" There are no rows with value 35, and due to the business rule, all the "u" & gt; Need to update is "35" from 35 i.e.
My question is: If I update, during the update, there may be a value equal to "u" during two rows.
Is this a problem?
I mean that the MySQL checks the unique obstacle at the end of the update or during the update?
If this update may fail, then I can do it as follows:
UPDATE `Table` y 'Inner Join (` Select' from 'Table' `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` ` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` `` "Itemprop =" text "> During my updating, mysql will check the unique obligation and will not allow any duplication in single update command to update several rows. You can check the table.
Comments
Post a Comment