I want to execute update query like this.
UPDATE reg_form set wallet_balance in("10","22","25") where id in("1","2","3");
I know the Syntax of Update is: UPDATE reg_form set wallet_balace = '10' where ...... but I want to execute query which is highlighted.
Here, Wallet Balance should be updated on the basis of id.
Edit:-
Here I have put the syntax for example only. In real Scenario I am getting amount from another table and the sum of that on basis of user_id updating in Table.
Like,
Update reg_form set wallet_balance in (SELECT refund_amount from refund) where user_id in (SELECT user_id from refund);
So, here I am expecting dynamic behaviour. Many users will be refunded as per their ID without manually checking cases.