I have the following SQLite query:
CREATE TABLE Logs ( Id integer IDENTITY (1, 1) not null CONSTRAINT PKLogId PRIMARY KEY, ...
IDENTITY (1, 1)
-> What does this mean?PKLogId
what is this? This doesn't seem to be defined anywhere- I want
Id
to beinteger primary key
withautoincrement
. I would like to be able to insert into thisLogs
table omittingId
column in my query. I wantId
to be automatically added and incremented. Is this possible? How can I do this?
At the moment when I try to insert without Id
I get:
Error while executing query: Logs.Id may not be NULL
Create Table
query was converted from SQL Server to SQLite