版权声明:本文为博主原创作品,转载请声明出处! https://blog.csdn.net/u011086209/article/details/85003796
(1)MySQL数据库设置自增序号,删除表中数据序号错乱重新排序
alter table tablename drop column id;
alter table tablename add id mediumint(8) not null primary key auto_increment first;
或
alter table tablename auto_increment=0
(2)执行创建表的sql语句设置默认编码格式
CREATE TABLE `school` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(64) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`actTime` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CHARACTER SET utf8 COLLATE utf8_unicode_ci
设置默认编码UTF-8,不区分大小写ci不区分大小写,cs区分大小写
(3)测试http请求工具postman下载地址