I am trying to create stored Procedure using Mysql version 5.6.11 but it showing some error, here is my Code.
CREATE PROCEDURE Debug(Message TEXT)
BEGIN
CREATE TABLE IF NOT EXISTS _debug (
id int(10) unsigned NOT NULL auto_increment,
msg TEXT DEFAULT NULL,
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (id)
);
INSERT INTO _debug(`msg`) VALUES(Message);
END;
I am getting this error:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 8