喜悦国际村 » 数据库技术 » Mysql 1064 错误

页: [1]
djj01272007-11-13 02:17 AM
Mysql 1064 错误

DELIMITER $$

DROP PROCEDURE IF EXISTS `vs`.`test`$$
CREATE PROCEDURE `vs`.`test` ()
BEGIN
  select * from bookplan
END$$

DELIMITER ;


刚学存储过程,遇到 这样一个错误,
you have an error in your sql syntax; check the manual that corresponds to your mysql server for the right syntax to
user near ' '  at line 4
我用的是mysql  5.0版本的 ,希望大家指点一下小弟!

wzhu2007-11-13 04:52 AM
DELIMITER $$

DROP PROCEDURE IF EXISTS `vs`.`test`$$
CREATE PROCEDURE `vs`.`test` ()
BEGIN
  select * from bookplan; //不要漏掉 ";"
END$$

DELIMITER ;

djj01272007-11-13 07:39 AM
回复 #2 wzhu 的帖子

问题解决了,谢谢版主

osdn2007-11-22 08:38 AM
学习了一下.

我不是村长2007-11-23 11:19 AM
我也不要做小鸟了 5555555555555555


查看完整版本: Mysql 1064 错误


Powered by Discuz! Archiver 6.1.0  © 2001-2006 Comsenz Inc.
Processed in 0.007034 second(s), 2 queries