How to import a tab delimited file in MySQL database using Java?

Sameek Mishra picture Sameek Mishra · Jul 1, 2011 · Viewed 14.5k times · Source

I want to import a tab delimited file in MySQL database. How I can do this using Java?

Answer

Candide picture Candide · Jul 1, 2011

This is very vague, but it sounds like a mysql specific question. Here's the manual for loading files. The default is:

FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\'
LINES TERMINATED BY '\n' STARTING BY ''