By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
✓
✓
✓
✓
✓
{ "code": "SQLITE_CONSTRAINT_UNIQUE" }
{ "code": "SQLITE_CONSTRAINT_FOREIGNKEY" }
device_id | logical_address | district | physical_location_id |
---|---|---|---|
1 | 100 | 1 | LA |
2 | 201 | 1 | LB |
3 | 100 | 2 | LC |