DB_Forge, default value |
This is version-dependent. From the MySQL documentation:
Quote:Before MySQL 5.6.5, support for automatic initialization and updating is more limited:
I was referring to the comment that "a table cannot have two timestamp fields", which is not true on its own. He didn't mention you can't have two timestamp columns that ALSO use the ON UPDATE CURRENT_TIMESTAMP clause, which would be true depending on the mysql version.
SQL 92 has CURRENT_TIMESTAMP, doesn't it?
https://www.ibphoenix.com/resources/docu...gn/doc_169 (01-02-2015, 02:16 PM)mwhitney Wrote: Since almost anything which would require this functionality would be database-specific (and CURRENT_TIMESTAMP is certainly MySQL-specific), you're probably better off just defining the field as |
Welcome Guest, Not a member yet? Register Sign In |