VIEWs have been a handy feature of MySQL for many years but do you know about the WITH CHECK OPTION clause? The WITH CHECK OPTION clause is used for a updatable views to prohibit the changes to those views that would produce rows which are not included in the defining query.
VIEW Definition Since a lot of SQL
novices read my blog, I'd like to start with the definition of a
view "Views are stored queries that when invoked produce a
result set. A view acts as a virtual table" according the
MySQL Manual.
SQL > CREATE VIEW
x_city AS
SELECT
Name,
…