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 '~';

猜你喜欢

转载自gy3135990.iteye.com/blog/1954463