Reputation: 19888
In TSQL there is
SET IDENTITY_INSERT ON;
is there a functional equivalent in SQLite?
Upvotes: 15
Views: 6250
Reputation: 180020
SQLite always allows inserting a value into the primary key column; automatically generated values are used only when the inserted value is NULL
(explicitly or omitted).
For details, see the documentation.
Upvotes: 20