Create a foreign key in SQLite database browser

Jeff picture Jeff · May 14, 2013 · Viewed 48.8k times · Source

Sorry for novice question.

I have created my tables using SQLite database browser, but:

  1. I do not know how can I specify my foreign keys using the application?

  2. How can I create a relationship diagram between tables?

Answer

Chintan Desai picture Chintan Desai · Dec 1, 2016

I know this question has been asked long ago but I found it. Its built right into GUI. You just need to drag and make those Name, Type tabs little bit small to make space for the Foreign Key tab. Place your mouse pointer at the end and drag the header.

My version of SQLite Browser is Version 3.7.0.

enter image description here