摘要:
开启事件调度器 SET GLOBAL event_scheduler = ON; 编写事件 注意:命令行会将分号【;】识别为结束符,可以使用navicat创建事件;或者使用DELIMITER关键字替换分号 /* 如果 error_event 事件存在, 则先删除它 */ DROP EVENT IF 阅读全文
摘要:
接口类 using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Storage; using System.Linq.Expressions; namespace Demo { /// <summary> // 阅读全文
摘要:
自定义扩展类 using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Mvc; using Microsoft 阅读全文
摘要:
using Microsoft.IdentityModel.Tokens; using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; using System.Text; namespace Demo { /// <su 阅读全文
摘要:
这段脚本的大致意思就是每日执行一次,删除一个月之前的数据 CREATE EVENT delete_t_error_log_data_event ON SCHEDULE EVERY 1 DAY STARTS CURRENT_TIMESTAMP DO BEGIN DECLARE target_date 阅读全文