MySQL与MyBatis中的查询记录

1、时间段查询

  MySQL:select * from table

      where ctime >= CURDATE() and ctime <DATE_SUB(CURDATE(),INTERVAL -1 DAY);

猜你喜欢

转载自www.cnblogs.com/lotuses/p/10011713.html
今日推荐