Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用批处理文件将 mysql 表数据导出到 csv 文件。它在屏幕上工作,但不能输出到 csv 文件。
@echo off " C:\ProgramFiles\MYSQL\MYSQL Workbench 6.3 CE\mysql.exe" mysql -uroot -ppassword -e "select plate form SWP;" > \output.csv pause exit
mysql 为此提供了一个功能: LOAD DATA INFILE 这将在文件中加载查询的内容。
在此处查看文档:
https://dev.mysql.com/doc/refman/5.7/en/load-data.html