【管理-查询】
1. 查询数据库中,包含有数据记录的表名
select TABLE_NAME
from information_schema.TABLES
where TABLE_SCHEMA = '数据库名称' and TABLE_ROWS > 0 ;
2. 查询当前日期时间前三天数据
select * from 表名 where 时间字段 < (NOW() + INTERVAL-3 DAY) ;
3. 将指定业务日期 更新为 一周后
update table_name set buss_time = (buss_time + INTERVAL-7 DAY) where id = 1 ;