MySQL date comparison

后端 未结 7 495
有刺的猬
有刺的猬 2020-12-18 06:30

Dates are stored in DB as such: \"2011-05-26 11:00:00\" in a datetime field. I\'d like to find all rows where the date is greater than the first of this month, ie: 2011-05-0

相关标签:
7条回答
  • 2020-12-18 07:05

    If it's stored in a DATETIME field, just query on WHERE date > '2011-05-01 09:00:00'.

    0 讨论(0)
提交回复
热议问题