MySQL导入导出CSV文件

select * from lx_log into outfile ‘d:\\test.csv’ fields terminated by ‘,’ optionally
enclosed by ‘” ‘ escaped by ‘”‘ lines terminated by ‘\r\n’

MySQL自己提供了导入导出的工具,但有时我们需要仅仅导入导出单个表的数据,

比如导入导出CSV文件,此时可以使用MySQL自动的命令来做导入导出工作。

 
Copyright © 2008-2021 lanxinbase.com Rights Reserved. | 粤ICP备14086738号-3 |