export csv: enclose key with quotes in mysql

1k views Asked by At

I am exporting a mysql table to csv using SQLYog.

I can get all the fields enclosed with " ", except for the id column which is first, primary key and set to int.

I've tried removing the primary key and changing the id column to text, but to no avail.

Not sure if this is because it is the first column, id, primary key or what.

2

There are 2 answers

0
wchiquito On BEST ANSWER

Try the following settings from SQLyog (12.1.2):

enter image description here

1
moven On

try another editor for example notepad to open your csv file. the quotes " " should be there.