代码:

添加:
ALTER TABLE table1
ADD COLUMN createtime timestamp NULL DEFAULT CURRENT_TIMESTAMP

修改:
alter table table1
change createtime newtime timestamp null default current_timestamp

————————————————
Done。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

隐藏
变装