mysql delimiter question

前端 未结 4 1358
情书的邮戳
情书的邮戳 2020-12-19 12:14

How do i do this:

mysql -u myuser -p mydb -e \"select f1,f2 from  mytable\" > /tmp/mydata.txt

But I want to separate the fields with a c

4条回答
  •  攒了一身酷
    2020-12-19 12:40

    You might also try the SELECT INTO OUTFILE command to produce your CSV file. Info here: http://dev.mysql.com/doc/refman/5.1/en/select.html

提交回复
热议问题