Error inserting new row
Issue #332
invalid
When I tried to insert a new row into my table called "purchases", I received the error message as below: -
ERROR: NOT NULL constraint failed: purchases.id This may be a bug that needs to be reported at https://bitbucket.org/phpliteadmin/public/issues?status=new&status=open
I'm not sure what the "NOT NULL constraint" means. Attached is the screenshot of my current table structure.
Comments (2)
-
repo owner -
repo owner - changed status to invalid
not a bug
- Log in to comment
Your table has NOT NULL set for the
id
column, thus when inserting a row, you need to insert something in theid
field. If you want SQLite to increase the id automatically so you don't have to input something every time, use 'autoincrement'.