select timestampdiff(SECOND,timestamp(t.LAST_LOGIN_TIME),timestamp(NOW())) from cfg_user t
second 可以换 day
select timestampadd(day, 1, '2008-08-08 08:00:00');
mysql 时间比较
猜你喜欢
转载自cuityang.iteye.com/blog/2389944
今日推荐
周排行