MySQL How to SELECT data from table which recorded today?

前端 未结 8 1767
死守一世寂寞
死守一世寂寞 2021-02-04 04:35

Use PHP and MySQL. In my table, there is date field (datetime) recorded by NOW() sql function. Example value of data in this field is 2010-10-07 10:57:36. Ho

8条回答
  •  执念已碎
    2021-02-04 05:01

    use something like this it exactly works on my code(access database):

    select * from Table t where t.column>=Date() and t.column< Date() + 1
    

提交回复
热议问题