CALL Procedure_Name([parameter[,...]])
例如:
Call myPro(100,'Johnson')
语法错误啦delimiter //
create event e_insert
on schedule every 1 month
starts curdate()
ends '2018-09-15'
do
begin
insert into tb_student
values('11','ss','nv','1998-07-29','shanxi','han','AC1301')
end //
delimiter
你进入mysql,输入show variables like 'event_scheduler'看下事件是否开启。没有的话set global event_scheduler = on
或者在配置文件中my.cnf,[mysqld]下面 加入:event_scheduler=ON
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)