Added SQL file to insert stored procedures in the MySQL database
This commit is contained in:
parent
551272306e
commit
2fff05a4b5
|
@ -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 ;
|
Loading…
Reference in New Issue