数据库批量修改表
批量删除表
select concat('drop table',table_name,';')
from information_schema.tables
where table_name like '%bak'; --bak为匹配信息
批量修改表前缀
select concat('alter table',table_name,'rename to jcpt_usercall_',substring(table_name,4),';')--表前缀jcpt_usercall_
from information_schema.tables
where table_name like 'tbl%'; 修改符合匹配信息的表
对比两张表(b表没有a的字段)
execl:复制字段到execl,a,b列
函数:
=IF(COUNTIF(B:B,A1)>0,"B列有","B列没有")