当前位置:Gxlcms > mysql > mysql5.0.90存储过程定义变量出错,求解

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

时间:2021-07-01 10:21:17 帮助过:15人阅读

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;

人气教程排行