使用sql语句查询出所有表名,并且拼装出修改语句,直接执行即可

select CONCAT(‘alter table ’ ,table_name,’ convert to character set utf8mb4;’) from information_schema.TABLES where TABLE_SCHEMA = ‘数据库’;

图片: 改变数据库表字符集

相关文章:

  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2022-03-09
  • 2021-08-20
  • 2021-08-03
猜你喜欢
  • 2022-12-23
  • 2021-09-20
  • 2022-02-13
  • 2021-06-19
  • 2021-09-26
  • 2022-01-18
  • 2022-01-25
相关资源
相似解决方案