2

I was trying to output Excel's data to a text file to use them in MySQL, nevertheless i was not able to find an easy solutio because at the end of each row I have to add manually a "TAB" ! Otherwise there are always errors in the MySQL table, is there any special data format to export these data from Excel 2003 ?

Thanx for your help

Alex

Alex
  • 23
  • 2

1 Answers1

1

You can load from CSV (comma separated value) format. See here. Are you saving your Excel data as tab separated? If so, save as comma separated and follow instructions in the link.

EDIT:

You probably need to include the

LINES TERMINATED BY '\r\n'  

statement. See this blog.

Eric J.
  • 147,927
  • 63
  • 340
  • 553
  • I tried also with commas but I need to add a comma at the end of the row. Manually and that's the same issue as with TABs – Alex May 15 '10 at 18:37
  • What version of MySQL are you using? The MySQL documentation examples do not show a comma at the end. – Eric J. May 15 '10 at 18:39