console_information_schema_table_col_fkey
Column | Type |
---|---|
table_name | TEXT |
column_name | BLOB |
foreign_key |
SQL DDL
CREATE VIEW console_information_schema_table_col_fkey AS
SELECT
tbl.name AS table_name,
f."from" AS column_name,
f."from" || ' references ' || f."table" || '.' || f."to" AS foreign_key
FROM sqlite_master tbl
JOIN pragma_foreign_key_list(tbl.name) f
WHERE tbl.type = 'table' AND tbl.name NOT LIKE 'sqlite_%'