Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Limit on multiple rows insert

Tags:

sqlite

Since version 3.7.11 SQLite supports enhanced INSERT syntax to allow multiple rows to be inserted via the VALUES clause.

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

Is there any limit on how many values can be inserted in a single statement? (for e.g. 500)

like image 736
shantanuo Avatar asked Apr 07 '13 03:04

shantanuo


1 Answers

SQLite handles a multi-row INSERT like a compound SELECT. The limit for that is indeed 500.

However, since version 3.8.8,

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

like image 132
CL. Avatar answered Oct 27 '22 17:10

CL.