I am trying to create a mysql stored procedure . I have successfully created a procedure using the following code :
delimiter $$
CREATE PROCEDURE `myprocedure` (IN
var1 DATE)
BEGIN
<---code-->
END
And
SHOW CREATE PROCEDURE myprocedure
shows me the procedure I have created.
But the Call myprocedure(2011-05-31);
shows me the following error
#1305 - PROCEDURE db.myprocedure does not exist
db is database where I have created the procedure
What mistake am I doing?
Can anyone help me in this?
MySQL 5.0 introduced Stored Procedures
– Bernat