Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.37 KB | None | 0 0
  1. DELIMITER $$
  2. CREATE DEFINER=`root`@`localhost` PROCEDURE `deleteAll`(IN `tmpGroup` INT)
  3.     NO SQL
  4. BEGIN
  5.     DELETE groups, transaction,expensestable
  6.     FROM groups
  7.     INNER JOIN transaction ON groups.groupID=transaction.groupID
  8.     INNER JOIN expensestable ON expensestable.expensesTableID=transaction.expensesTableID
  9.     WHERE groups.groupID = tmpGroup;
  10. END$$
  11. DELIMITER ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement