Regarding the MariaDB transactions

In My Practice Application,

I have an accounts table that contains the details of the account holder like the name, balance, etc.

Here, I am writing a stored procedure to transfer an amount from one account to another account

          in the Transfer Amount stored procedure, 2 steps need to be included in a transaction, 

                            1)  subtracting amount from the sender account.

                            2) Adding amount to the receiver account 

  Discussion posts and replies are publicly visible