Mysql时间加一天
SELECT id,S_MeasureEndTime,L_DID,s_rollcount,
(CASE WHEN DATE_FORMAT(S_MeasureEndTime,'%H:%m')>="23:00" THEN
DATE_FORMAT(DATE_ADD(S_MeasureEndTime,INTERVAL 1 DAY),'%Y-%m-%d')
ELSE S_MeasureEndTime
END) ttt
FROM wd_sport WHERE L_DID=60
本文来自博客园,作者:.net&new,转载请注明原文链接:https://www.cnblogs.com/wugh8726254/p/14491526.html