

2.导出数据表txt文件到指定目录:select * from table_name into outfile '指定目录';

3.加载指定文件到数据表中:load data local infile '文件路径' into table table_name;

本文介绍了MySQL中两种实用的数据管理方法:一是如何将数据表导出为txt文件并保存到指定目录;二是如何将指定的txt文件加载到MySQL数据表中。这两种方法对于批量处理数据非常有用。


2.导出数据表txt文件到指定目录:select * from table_name into outfile '指定目录';

3.加载指定文件到数据表中:load data local infile '文件路径' into table table_name;

6138

被折叠的 条评论
为什么被折叠?