Home > Database > Mysql Tutorial > MySQL 1303错误的解决方法(navicat)_MySQL

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

WBOY
Release: 2016-06-01 13:19:57
Original
2036 people have browsed it

Navicat

bitsCN.com 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() ,这样写是命令行直接执行是没有问题的。于是去掉第一行,果然问题解决。bitsCN.com
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