tags:

views:

18

answers:

1

Hello to everybody, 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

+1  A: 

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.
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
What version of MySQL are you using? The MySQL documentation examples do not show a comma at the end.
Eric J.
I am using MySQL 5.1
Alex
See edit to my response. That should solve the problem.
Eric J.
ah OK !! Thanx a lot ERIC
Alex
Glad to help. And welcome to SO.
Eric J.