Guest User

Untitled

a guest
Feb 16th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. DELIMITER //
  2.  
  3. CREATE PROCEDURE change_owner (
  4. IN fr_user_id int,
  5. IN to_user_id int,
  6. IN p_account_id int)
  7. BEGIN
  8. start transaction;
  9.  
  10. UPDATE accountowner SET user_id = to_user_id WHERE account_id = p_account_id;
  11.  
  12. commit;
  13. END; //
  14. DELIMITER ;
Add Comment
Please, Sign In to add comment