mysql 追加update_time、create_time、id三字段
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
声明:该文观点仅代表作者本人,入门客AI创业平台信息发布平台仅提供信息存储空间服务,如有疑问请联系rumenke@qq.com。
- 上一篇:没有了
- 下一篇:没有了
