I have recently been given the task of taking a text file and writing it to a table. We are trying to avoid having to rewrite the entire project because of the business logic that takes place here.
We have a table with 128 columns and the text file is being generated by looping through all 128 categories and converting them to one long string separated by an '\t' like this:
1001\t1234\tBaseball\tetc. and it goes on for 128 fields.
My question is can I take this string and insert into a table separating by columns based on the '\t' value?
I appreciate any input at all.
Someone marked this as a duplicate to something clearly not what I asked at all,
This is NOT reading from a text file, I am trying to find out if there was a way using JDBC to write a string with delimiters separating fields of the string.