牛骨文教育服务平台(让学习变的简单)
博文笔记

mysql 追加update_time、create_time、id三字段

创建时间:2017-11-26 投稿人: 浏览次数:507
alter table tbl_books modify create_time datetime  not null default current_timestamp
alter table tableName add update_time datetime not null default current_timestamp on update current_timestamp
alter table tbl_books modify id bigint auto_increment
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。