欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

mysql5.0.90存储过程定义变量出错,求解

程序员文章站 2022-05-02 19:09:39
...

CREATEPROCEDUREp()DECLAREaINT; 错误代码:#1064-YouhaveanerrorinyourSQLsyntax;checkthemanualthatcorrespondstoyourMySQLserverversionfortherightsyntaxtousenearDECLAREaINTatline1 求解释,求正确的代码,谢谢!!!!!!!!!!!!!!!!!!!

CREATE PROCEDURE p () DECLARE a INT;
错误代码:#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 'DECLARE a INT' at line 1

求解释,求正确的代码,谢谢!!!!!!!!!!!!!!!!!!!!!!!!!! MySQL
CREATE PROCEDURE p () DECLARE a INT;