Mysql/Php - Current date and time

后端 未结 3 634
傲寒
傲寒 2021-02-13 19:38

I have a query that I want to update a column with the current date time. The column I want to update is of the type datetime.

How can I get it and set it?



        
3条回答
  •  误落风尘
    2021-02-13 20:23

    You can use the mysql function NOW() for this, or you can pase the $_SERVER['REQUEST_TIME'] in there so the query gets cached by mysql.

提交回复
热议问题