Answers for "how to change / to - date in mysql"

SQL
1

date conversion in mysql column

MySQL DATE_FORMAT() formats a date as specified in the argument. A list of format specifiers given bellow may be used to format a date. The ‘%’ is required before the format specifier characters.

Syntax:

DATE_FORMAT(date,format)
Posted by: Guest on January-23-2021
0

mysql change timestamp on update

ALTER TABLE whatevertable
     CHANGE whatevercolumn 
            whatevercolumn TIMESTAMP NOT NULL
                           DEFAULT CURRENT_TIMESTAMP 
                           ON UPDATE CURRENT_TIMESTAMP;
Posted by: Guest on September-14-2020

Code answers related to "how to change / to - date in mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language