mysqltimestampsql-update

How to update MySQL timestamp column to current timestamp?


I want to update the columns of data type timestamp manually through my PHP code.

How to do that?


Solution

  • Use this query:

    UPDATE `table` SET date_date=now();