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

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

WBOY
Release: 2016-06-07 14:57:12
Original
1194 people have browsed it

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;
Copy after login
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template