1

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.

1
  • Also when exporting open the csv in a text editor. I was opening the file in excel and excel was formating the id as numeric and removing the double quotes around all the cells in that column!!! Commented Jun 10, 2015 at 15:29

2 Answers 2

2

Try the following settings from SQLyog (12.1.2):

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

0

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

1 Comment

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.