START TRANSACTION ISOLATION LEVEL REPEATABLE READ;
UPDATE amounts SET
amount = amount + 100
WHERE id = 1;
START TRANSACTION ISOLATION LEVEL REPEATABLE READ;
UPDATE amounts SET
amount = amount + 200
WHERE id = 1;
<?
class Animal
{
protected function eat()
{
echo 'кушаю...';
}
}
class Cat extends Animal
{
public function eat()
{
echo 'кушаю...';
}
}