You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two tables that are linked by two columns. I'd like to add a foreign key here to see it my query runs faster. SQLiteStudio can only create a foreign key for a single column to the other table, not for two columns. I'm pretty sure SQLite supports that, but I'll have to look up the SQL syntax for it. It would be nice if the UI would allow me to do that more quickly.
Update: Looks like I cannot add a foreign key to an existing table with SQLite (it's so limited it can barely do anything…), so the extra work SQLiteStudio does by creating the temporary table would be extremely useful here!
This discussion was converted from issue #4780 on May 04, 2023 22:51.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Details
I have two tables that are linked by two columns. I'd like to add a foreign key here to see it my query runs faster. SQLiteStudio can only create a foreign key for a single column to the other table, not for two columns. I'm pretty sure SQLite supports that, but I'll have to look up the SQL syntax for it. It would be nice if the UI would allow me to do that more quickly.
Update: Looks like I cannot add a foreign key to an existing table with SQLite (it's so limited it can barely do anything…), so the extra work SQLiteStudio does by creating the temporary table would be extremely useful here!
Beta Was this translation helpful? Give feedback.
All reactions