create table if not exists case_exec_step_copy
select *
from case_exec_step;
truncate table case_exec_step;
create index index_business
on case_exec_step (report_no, case_no, step, current_times)
comment '业务主键';
drop index index_createtime on case_exec_step;
insert into case_exec_step select * from case_exec_step_copy;
create table if not exists case_exec_step_page_copy
select *
from case_exec_step_page;
truncate table case_exec_step_page;
create index index_step_begin_time
on case_exec_step_page (step_begin_time);
drop index index_createtime on case_exec_step_page;
insert into case_exec_step_page select * from case_exec_step_page_copy;
>#查看数据库系统的字符编码
show variables like '%character%'
>#查看数据库系统的排序规则
show variables like '%collation%'
>#查看数据库的字符集编码
show variables like 'character_set_database';
>#查看数据库.表的排序规则
show table status from dfsk_atp_vat like 'can_dtu_vin';
>#查看数据库.表.字段的排序规则
show full columns from dfsk_atp_vat.can_dtu_vin;