标题:[求助]mysql5存储过程出错
只看楼主
mihaisheng
Rank: 1
等 级:新手上路
帖 子:47
专家分:0
注 册:2005-1-28
 问题点数:0 回复次数:2 
[求助]mysql5存储过程出错
create procedure myproc5 (c1 int,c2 varchar(20),c3 varchar(50))
begin
insert into table1 values ( c1 , c2 , c3 );
end;
帮我看看,哪错了啊???
搜索更多相关主题的帖子: varchar procedure insert begin 
2006-03-06 19:51
mihaisheng
Rank: 1
等 级:新手上路
帖 子:47
专家分:0
注 册:2005-1-28
得分:0 
[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

2006-03-07 11:47
weizy
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2006-8-1
得分:0 
DELIMITER $$
create procedure myproc5 (c1 int,c2 varchar(20),c3 varchar(50))
begin
insert into AAA value( c1 , c2 , c3 );
end;$$
DELIMITER ;
2006-08-01 16:04



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-48758-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.663034 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved