【发布时间】:2022-10-22 18:22:04
【问题描述】:
希望这个任务能找到你。
Please help me out with this,
My requirement is to transfer money from one account to another account which is in a same table.
the procedure should have 3 in parameters,
They are,
--> from_account_number
--> To_account_number
--> Credit_amount
实际数据:
acc_num acc_bal
12345 50000
67890 40000
预期数据:
eg: exec trans_sp(12345,67890,10000);
ac_num ac_bal
12345 40000
67890 60000
`trans_sp`
【问题讨论】:
-
从一个帐户中减去并添加到另一个帐户;应该相当简单。试试看。
标签: oracle stored-procedures plsql plsql-package