在Linux下将mysql中的数据导出到CSV格式,或者导入数据
打开mysql
使用命令
mysql>show databases;//查看有哪些数据库
mysql>use tpch;//使用tpch数据库
mysql>show tables;//查看tpch数据库中有哪些表
mysql>select * from nation into outfile '/home/yxx/tpch/nation.csv' fields terminated by ',' optionally enclosed by '"' escaped by '"' lines terminated by '\r\n';
此条命令是将nat