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
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。
- 上一篇: python统计字符串里每个字符的次数
- 下一篇: python统计一个文档中 各个字符出现的次数