sqlite3 bulk insert from C?
问题 I came across the .import command to do this (bulk insert), but is there a query version of this which I can execute using sqlite3_exec(). I would just like to copy a small text file contents into a table. A query version of this one below, ".import demotab.txt mytable" 回答1: Sqlite's performance doesn't benefit from bulk insert. Simply performing the inserts separately (but within a single transaction!) provides very good performance. You might benefit from increasing sqlite's page cache size