I am trying to load some test data to a table which has a column called mytext
which has the type TEXT
. I have a text format novel file which is 3MB in size. I am wondering if there is any easy and proper way to load the string line by line to the column mytext
instead of looping it in a for loop from my client language. (each line per row).
Basically:
insert into table (column) values('a line of the text file')
Edited
(1) My question is marked as a duplicate of loading csv formatted file. I need to edit it. I don't think it's a duplicate because I cannot use the solution mentioned in that post and my file is not a csv formatted file. It's simply just a novel, and I only need load data to one column too.
(2) I just want to load a novel data to a column and then I can test some LIKE, FTS features.