Home  >  Article  >  Database  >  MySQL 1303错误的解决方法(navicat)

MySQL 1303错误的解决方法(navicat)

WBOY
WBOYOriginal
2016-06-07 18:01:511643browse

今天在用navicat创建MYSQL存储过程的时候,总是出现错误,错误信息如下.

1303-Can 't create a PROCEDURE from within another stored routine.
这个错误信息,比较难以理解,于是仔细检查存储过程内容,也没什么问题呀,代码如下:
代码如下:
CREATE PROCEDURE addData()
begin
declare v int default 0;
while v do
insert into TestMemory
values (v,'ffffffffffffffffffffffffffasgeweeeeeeeeeeeeeg');
set v = v + 1;
end while;
end

后来搜索了下,才知道,很简单的问题,就是在通过工具创建存储过程的时候,不需要这一行了:CREATE PROCEDURE addData() ,这样写是命令行直接执行是没有问题的。于是去掉第一行,果然问题解决。
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