Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sqlite3 foreign key
#2
First, because you use the python wrapper to sqlite3, the DBMS does not automatically become part of python, it's still sqlite3,
not Python.
I'd use the sqlite3 interface to open the database and check the schema of the tables in question to make sure the constraints are there.
From command line (in database directory), type slqite3 databasename
at the prompt 'sqlite>' type .schema
check the tables to make sure constraint exists.
Then try to manually insert commands.
.quit to exit
Reply


Messages In This Thread
sqlite3 foreign key - by dsvinson - Mar-31-2018, 01:22 PM
RE: sqlite3 foreign key - by Larz60+ - Mar-31-2018, 01:41 PM
RE: sqlite3 foreign key - by woooee - Mar-31-2018, 04:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  FOREIGN KEY constraint failed SalsaBeanDip 2 2,942 Dec-05-2020, 10:22 PM
Last Post: SalsaBeanDip
  [split] create a virtual keyboard of an unknown foreign language with python fakoly 0 2,501 May-28-2018, 01:34 AM
Last Post: fakoly

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020