R-13439-14752:[The CREATE VIEW command assigns a name to a pre-packaged SELECT statement. ] R-63075-15970:[Once the view is created, it can be used in the FROM clause of another SELECT in place of a table name. ]
R-23992-54131:[If the "TEMP" or "TEMPORARY" keyword occurs in between "CREATE" and "VIEW" then the view that is created is only visible to the database connection that created it and is automatically deleted when the database connection is closed. ]
R-20124-57769:[If a schema-name is specified, then the view is created in the specified database. ] R-11564-19849:[It is an error to specify both a schema-name and the TEMP keyword on a VIEW, unless the schema-name is "temp". ] R-63159-49573:[If no schema name is specified, and the TEMP keyword is not present, the VIEW is created in the main database. ]
R-16775-34716:[You cannot DELETE, INSERT, or UPDATE a view. ] R-05363-17893:[Views are read-only in SQLite. ] R-16876-26469:[However, in many cases you can use an INSTEAD OF trigger on the view to accomplish the same thing. ] R-10484-47921:[Views are removed with the DROP VIEW command. ]
R-49858-53293:[If a column-name list follows the view-name, then that list determines the names of the columns for the view. ] R-36185-29671:[If the column-name list is omitted, then the names of the columns in the view are derived from the names of the result-set columns in the select-stmt. ] Note that the column-name list syntax is only supported in SQLite versions 3.9.0 (2015-10-14) and later.