mysql 时间间隔

来源:互联网 发布:神舟风扇控制软件 编辑:程序博客网 时间:2024/04/27 22:34

select c_item_id from t_char_item where CURRENT_TIMESTAMP() > DATE_ADD(c_buy_time, INTERVAL 5 DAY);
 
select * from %s where time_stemp > (curdate() - interval 1 day) limit %d,%d 
 
 
select * from %s where time_stemp > curdate() limit %d,%d