Skip to content

Cannot add record to table with foreign keys #463

@peku33

Description

@peku33

I have a table 'A' with Primary Key on 'ID' column. I have some data inside, however there is no record with ID = 1.

I have a table 'B' with AID marked as Foreign Key from table 'A'.

If I try to add new record in B i get:
DB Browser for SQLite
Error adding record:
CHECK constraint failed: B (INSERT INTO B (AID) VALUES (1, ...);)

Metadata

Metadata

Assignees

Labels

bugConfirmed bugs or reports that are very likely to be bugs.constraints & foreign keys

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions