You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--perform from client c where c.id = new.client_id for update; -- или альтернативный вариант с блокировкой записи
1352
+
--perform from client c where c.id = new.client_id for update; -- или альтернативный вариант с блокировкой записи, но более медленный, т.к. бликирует строку в таблице от изменений в параллельных транзакциях (они встают в очередь)
1353
1353
1354
1354
if (selectcount(*) from order o whereo.client_id=new.client_id) >5 then
0 commit comments