into outfile 和load data infile的使用

将查询结果导出为文本文件

SELECT 字段 into outfile 'test/123.txt'  from 表名

 

将文本文件导入到表中

load data infile 'test/123.txt' into table 表名 fields terminated by  '\t'  enclosed by '~';

 

你可能感兴趣的:(into outfile 和load data infile的使用)