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;