MySQL - select data from database between two dates

后端 未结 8 1208
被撕碎了的回忆
被撕碎了的回忆 2020-11-27 22:07

I have saved the dates of a user\'s registration as a datetime, so that\'s for instance 2011-12-06 10:45:36. I have run this query and I expected this item

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 22:40

    Have you tried before and after rather than >= and <=? Also, is this a date or a timestamp?

提交回复
热议问题