摘要: 目前认为比较好的解决方案。1,工具类public class SpringApplicationContextHolder implements ApplicationContextAware { private... 阅读全文
posted @ 2018-09-14 16:02 vlees 阅读(106) 评论(0) 推荐(0)
摘要: mysql日期加减 一、MySQL 为日期增加一个时间间隔:date_add()。1、 示例:set @dt = now();select date_add(@dt, interval 1 day); ... 阅读全文
posted @ 2018-09-14 15:56 vlees 阅读(406) 评论(0) 推荐(0)
摘要: 需求:定时删除数据库A表中10分钟之前的数据。1.创建存储过程CREATE DEFINER=`root`@`%` PROCEDURE `del_hrt`()BEGIN SET @time = date_sub... 阅读全文
posted @ 2018-09-14 15:53 vlees 阅读(68) 评论(0) 推荐(0)