Hi, I would like to create a table via JDBC for several databases such as DB2, Sybase, MySQL, etc. Now I need to create this table using the text file say data.txt, which contains data separated by spaces. For instance,
CustName OrderNo PhoneNo XYZ 230 123456789 ABC 450 879641238
Now this data.txt file contains thousands of space values, separated by spaces. I need to parse this file line by line using java io and execute sql queries for each record.
I found that there is a LOAD DATA INFILE sql command. Does any JDBC driver support this command? If not what should be the best effective quick approach to solving this problem.
Please guide. Thanks in advance.
source share