SQLScholar
Programmer
Hey all,
I am running Mysql version 5.0.77 and phpMyAdmin - 2.8.2.4
I cant seem to create stored procs. I am even trying a test one from this website:
Slightly changes (removed the insert) i have:
And I am gettting:
Error
SQL query:
CREATE PROCEDURE procedure1/* name */(
IN parameter1 INTEGER
)/* parameters */ BEGIN /* start of block */DECLARE variable1 CHAR( 10 ) ;
MySQL said:
#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 4
Any help for a Mysql newbie greatly recieved.
Dan
----------------------------------------
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Dr. Seuss
Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------
I am running Mysql version 5.0.77 and phpMyAdmin - 2.8.2.4
I cant seem to create stored procs. I am even trying a test one from this website:
Slightly changes (removed the insert) i have:
Code:
CREATE PROCEDURE procedure1 /* name */
(IN parameter1 INTEGER) /* parameters */
BEGIN /* start of block */
DECLARE variable1 CHAR(10); /* variables */
IF parameter1 = 17 THEN /* start of IF */
SET variable1 = 'birds'; /* assignment */
ELSE
SET variable1 = 'beasts'; /* assignment */
END IF; /* end of IF */
END /* end of block */
And I am gettting:
Error
SQL query:
CREATE PROCEDURE procedure1/* name */(
IN parameter1 INTEGER
)/* parameters */ BEGIN /* start of block */DECLARE variable1 CHAR( 10 ) ;
MySQL said:
#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 4
Any help for a Mysql newbie greatly recieved.
Dan
----------------------------------------
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Dr. Seuss
Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------