Home >Database >Mysql Tutorial >mysql5.0.90存储过程定义变量出错,求解

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

WBOY
WBOYOriginal
2016-06-07 14:57:121192browse

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;
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn