MySQL定时执行存储过程
2023-02-18 16:45:15 时间
create table tmp (
id int ,
test VARCHAR(200)
);
CREATE DEFINER=root
@%
PROCEDURE myproc
()
begin
insert into tmp(id,test) select 1,'test' from dual;
end;
-- 创建定时计划的例子,每天定时,自动将日期加1天
CREATE EVENT t_test
ON SCHEDULE EVERY 1 DAY STARTS '2021-05-17 09:40:10'
ON COMPLETION PRESERVE
ENABLE
DO
call myproc();
select * from tmp;
相关文章
- 3xx HTTP状态码的终极指南
- React报错之React.Children.only expected to receive single React element child
- React报错之Element type is invalid
- React报错之Too many re-renders
- React报错之Function components cannot have string refs
- 如何发布一个 TypeScript 编写的 npm 包
- 如何使用zx编写shell脚本
- 13个构建RESTful API的最佳实践
- 什么是REST API
- React报错之Rendered more hooks than during the previous render
- 如何使用CSS伪类选择器
- React报错之Property 'value' does not exist on type EventTarget
- React报错之Parameter 'event' implicitly has an 'any' type
- React报错之Parameter 'props' implicitly has an 'any' type
- React报错之Property 'value' does not exist on type 'HTMLElement'
- React报错之You provided a `checked` prop to a form field
- React报错之Invalid hook call
- React报错之React hook 'useState' cannot be called in a class component
- React报错之React Hook 'useEffect' is called in function
- React报错之React hook 'useState' is called conditionally