May 2023
Intermediate to advanced
352 pages
7h 23m
English
In this chapter, you’ll learn how to create and use views. Views are virtual tables based on the output of a query you write to customize the display of your result set. Each time you select from a view, MySQL reruns the query that you defined the view with, returning the latest results as a table-like structure with rows and columns.
Views are useful in situations where you want to simplify a complex query or hide sensitive or irrelevant data.
You create a view using the create view syntax. Let’s look at an example with the following course table:
course_name course_level --------------------------------------- ...Read now
Unlock full access