update t_security_work set alarm_time = date_add(alarm_time,interval 1 day) where id=4;
update 表名
set 列名 = date_add(列名,interval n day)
-- Table "push_msg_overview" DDL
CREATE TABLE `push_msg_overview` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`push_date` date NOT NULL COMMENT '日期',
`project_type` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '项目类型 1 2~30天未启动推送 2 30-60天未启动 3 无限制推送 9 柚子街消息 10 临时推送(促销推送) 11 手动推送',
`push_app` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '推送app 1 经期 2 柚宝宝',
`platform` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '推送平台 0 所有 2 ios 3 安卓',
`offset_day` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '距离推送日期天数 (0 当天统计) ',
`actual_push_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '实际推送量',
`success_push_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '成功推送量',
`arrived_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '到达量',
`open_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '打开量',
PRIMARY KEY (`id`),
UNIQUE KEY `uni_push_date` (`push_date`,`project_type`,`push_app`,`platform`,`offset_day`)
) ENGINE=InnoDB AUTO_INCREMENT=2417 DEFAULT CHARSET=utf8mb4 COMMENT='推送数据总览';
select * from push_msg_overview where date_add( push_date ,interval offset_day day )= '2018-11-05'