質問

I have been trying to export a mysql table with INTO OUTFILE to CSV for editing in Excel and then inserting back into mysql using LOAD DATA INFILE.

I can export ok, and even reinsert the unedited file. However, if I open in Excel make changes and then save things get screwed up. I select "Yes" when it asks if I'm sure I want to export in CSV, but even if I try and reopen the file in Excel it comes up with invalid format.

I am wondering what the proper settings "FIELDS ESCAPED BY, TERMINATED, etc." would be for each command to ensure compatibility with Excel.

Thanks,

正しい解決策はありません

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top