/ Published in: MySQL
add created datetime and modified timestamp columns to table
Expand |
Embed | Plain Text
ALTER TABLE `table` ADD `created` DATETIME NOT NULL , ADD `modified` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
You need to login to post a comment.
