January 2020
Beginner
256 pages
5h 11m
English
In this lesson, you’ll learn exactly what views are, how they work, and when they should be used. You’ll also see how views can be used to simplify some of the SQL operations performed in earlier lessons.
Views are virtual tables. Unlike tables that contain data, views simply contain queries that dynamically retrieve data when used.
Note: Views in SQLite
SQLite supports only read-only views, so views may be created and read, but their contents cannot be updated.
The best way to understand views is to look at an example. Back in Lesson 12, “Joining Tables,” you used the following SELECT statement to retrieve data from three tables:
Read now
Unlock full access