Is there an easy way of dumping a SQLite database table into a text string with insert
statements to be imported into the same table of a different database?
In my specific example, I have a table called log_entries with various columns. At the end of every day, I'd like to create a string which can then be dumped into an other database with a table of the same structure called archive. (And empty the table log_entries)
I know about the attach
command to create new databases. I actually wish to add it to an existing one rather than creating a new one every day.
Thanks!