Added SQL file to insert stored procedures in the MySQL database

This commit is contained in:
GuenHamza 2016-07-07 03:27:03 +00:00 committed by GitHub
parent 551272306e
commit 2fff05a4b5
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
DELIMITER //
CREATE PROCEDURE GetFoosByName(IN fooName VARCHAR(255))
LANGUAGE SQL
DETERMINISTIC
SQL SECURITY DEFINER
BEGIN
SELECT * FROM foo WHERE name = fooName;
END //
DELIMITER ;
DELIMITER //
CREATE PROCEDURE GetAllFoos()
LANGUAGE SQL
DETERMINISTIC
SQL SECURITY DEFINER
BEGIN
SELECT * FROM foo;
END //
DELIMITER ;