mysql中存储过程报错
1个回答
展开全部
帮你改了一下
DELIMITER $$
create procedure pplog.addUser()
begin
declare count1 int default 0;
if count1<1000000 then
set count1=count1+1;
insert into pplog.user_log_inf(infohash,filesize,userIp,start_time,end_time,download,total_visit,protocal)
values("3662HDSH",232,'10,23,351',"2010-04-15 10:13:04","2010-05-15 11:34:40",22,33,44);
else set count1=count1+10;
end if;
END$$
DELIMITER ;
DELIMITER $$
create procedure pplog.addUser()
begin
declare count1 int default 0;
if count1<1000000 then
set count1=count1+1;
insert into pplog.user_log_inf(infohash,filesize,userIp,start_time,end_time,download,total_visit,protocal)
values("3662HDSH",232,'10,23,351',"2010-04-15 10:13:04","2010-05-15 11:34:40",22,33,44);
else set count1=count1+10;
end if;
END$$
DELIMITER ;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询