Откат нескольких запросов на обновление в случае сбоя одного из нихPhp

Кемеровские программисты php общаются здесь
Гость
Откат нескольких запросов на обновление в случае сбоя одного из них

Сообщение Гость »


У меня есть несколько queries that change the group name in the

Код: Выделить всё

tbl_groups
table at first, and then update all the users in the

Код: Выделить всё

tbl_users
table that belong to those groups. However, when the user update query fails, those group names have already been updated. What I want is update both together or neither, and I am using PHP and MySQL.


Источник: https://stackoverflow.com/questions/142 ... -one-fails

Вернуться в «Php»