Timestamp columns… when phpMyAdmin won’t let you change defaults!

Posted by & filed under Odds.

ALTER TABLE my_table CHANGE created created TIMESTAMP NOT NULL DEFAULT 0, CHANGE modified modified TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Bitnami