I get "data" from text file and here is what i get like chr[1:18].. below is my data. Need to convert it as a 6 column set and insert into database table.
str(data)
chr [1:18] "1" "4545" "1" "6" "4000" "Europe" "2" "3565" "5" "8" "5450" "Asia" "3" "4646" "1" "5" "3455" "Europe"
insert into mytable (column1, column2, column3, column4, column5, column6)
values ( "1", "4545", "1", "6", "4000", "Europe"),
( "2", "3565", "5", "8", "5450", "Asia"),
("3", "4646", "1", "5", "3455", "Europe")
Could anyone suggest? I tried to google, but could not any good ones. Thanks.