DELIMITER $$
DROP PROCEDURE IF EXISTS `tableselect` $$
CREATE PROCEDURE `tableselect`()
BEGIN
select * from table_a;
END $$
DELIMITER ;
when i try to create a procedure by using the code specified above, i get 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 'DELIMITER $$
DROP PROCEDURE IF EXISTS `tableselect` $$
CREATE PROCEDURE `' at line 1
i use mysql 5.0
any help would be appreciated.
thanks,
gomzi.
DROP PROCEDURE IF EXISTS `tableselect` $$
CREATE PROCEDURE `tableselect`()
BEGIN
select * from table_a;
END $$
DELIMITER ;
when i try to create a procedure by using the code specified above, i get 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 'DELIMITER $$
DROP PROCEDURE IF EXISTS `tableselect` $$
CREATE PROCEDURE `' at line 1
i use mysql 5.0
any help would be appreciated.
thanks,
gomzi.
Comment