MySql query to select records with a particular date

后端 未结 4 1679
情歌与酒
情歌与酒 2021-02-02 07:41

so right now I\'m storing a the date of each search done on my site like this

2011-06-07 21:44:01

now I\'d like to execute a query to select al

4条回答
  •  爱一瞬间的悲伤
    2021-02-02 08:25

    mysql_query("SELECT tag from tags WHERE DATE(`date`) = '2011-06-07'");
    

    http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_date

提交回复
热议问题