注册 登录
编程论坛 MySQL论坛

[求助]mysql5存储过程出错

mihaisheng 发布于 2006-03-06 19:51, 1709 次点击
create procedure myproc5 (c1 int,c2 varchar(20),c3 varchar(50))
begin
insert into table1 values ( c1 , c2 , c3 );
end;
帮我看看,哪错了啊???
2 回复
#2
mihaisheng2006-03-07 11:47
[local] ERROR 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 'insert into table1 values ( c1 , c2 , c3 )' at line 3
[local] ERROR 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 'end' at line 1
#3
weizy2006-08-01 16:04
DELIMITER $$
create procedure myproc5 (c1 int,c2 varchar(20),c3 varchar(50))
begin
insert into AAA value( c1 , c2 , c3 );
end;$$
DELIMITER ;
1