Limit on inserting multiple rows

Starting with version 3.7.11, SQLite supports the extended INSERT syntax, which allows you to insert multiple rows through the VALUES clause.

http://www.sqlite.org/releaselog/3_7_11.html

Is there a limit on the number of values ​​that can be inserted into a single statement? (e.g. 500).

+6
source share
2 answers

SQLite treats multi-line INSERT as a compound SELECT. The limit for this is really 500 .

However, since version 3.8.8 ,

the number of rows in the VALUES clause is no longer limited to SQLITE_LIMIT_COMPOUND_SELECT.

+9
source

According to the official documentation, there are actually some limitations:

+1
source

All Articles