Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql create timestamp column

ALTER TABLE `table1` ADD `lastUpdated` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #create #timestamp #column
ADD COMMENT
Topic
Name
8+7 =