|
|
|
|
|
by reese_john
1613 days ago
|
|
I thought the same thing as the parent post, assuming you have a column "account_id", can't you just do: select *
from transactions
where
account_id=$user_account_id
for update;
Wouldn't all rows for the particular user be locked ? Then you can check the balance, append, commit and release the lock |
|