SQLite 3 · Inspecting the database

List a table's foreign keys

Show the foreign keys declared on a table.

PRAGMA foreign_key_list(orders);

Official SQLite 3 documentation

More inspecting the database commands

All inspecting the database commands · SQLite 3 cheatsheet

Was this page helpful?