Can't find the file created by outfile in MySQL

后端 未结 7 809
情歌与酒
情歌与酒 2020-12-08 00:39

I am using the following query to create a CSV file

SELECT email INTO OUTFILE \"mydata.csv\"
FIELDS TERMINATED BY \',\' OPTIONALLY ENCLOSED BY \'\"\'
LINES          


        
7条回答
  •  醉话见心
    2020-12-08 01:06

    You find the file in C:\wamp\bin\mysql\mysql5.5.24\data, but the name will be UsersNamecarro.txt if you gave following select * from carro where id_cor<4 INTO OUTFILE 'C:\Users\Name\carro.txt';

    So just write .....OUTFILE 'C:\carro.txt' to get file called carro.txt in data folder

提交回复
热议问题