Read-only Back to SQLite3 Guide
Northwind › Views
Customer and Suppliers by City view

120 rows. A view stores a SELECT statement, not rows: each time you open it, SQLite runs the query again.

Data Structure
Columns
PRAGMA table_info
#NameTypeNot nullDefaultKeyReferences
0 City TEXT no —
1 CompanyName TEXT no —
2 ContactName TEXT no —
3 Relationship (none) no —
Definition
from sqlite_schema
CREATE VIEW "Customer and Suppliers by City" AS SELECT City, CompanyName, ContactName, 'Customers' AS Relationship FROM Customers UNION SELECT City, CompanyName, ContactName, 'Suppliers' FROM Suppliers