Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 MySQL 数据库有问题,因为其中的一些表是 utf-8 编码的,而有些则不是。我想让所有表格和数据合并为 utf-8。
是否有批处理命令来实现这一点?
谢谢
ALTER TABLE tbl_name CONVERT TO CHARACTER SET charset_name [COLLATE collation_name];
你可以把它变成一些程序或批处理脚本。