Guest User

Untitled

a guest
Dec 16th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. CREATE DEFINER=`root`@`localhost` PROCEDURE `testingtwo`(in plato integer, in payment decimal(8,2))
  2. BEGIN
  3. declare pay decimal(8,2);
  4.  
  5. update patron set fines_owed-payment where patron=plato;
  6.  
  7. -- update patron set fines_owed =newfines where patron_id=plato;
  8.  
  9. select concat(efname,' ',elname) as borrower,fines_owed from patron where patron_id=plato;
  10.  
  11.  
  12. END
Add Comment
Please, Sign In to add comment