Creates a view on a table.
CREATE VIEW view AS query
view
The name of the view to create.
query
The SQL query to provide the columns and rows of the view.
CREATE
The message returned when a view is successfully created.
ERROR: Relation '
view
' already exists
The error returned if a view with the name you supplied (view
) already exists.
NOTICE create: attribute
“column
” has an unknown type
The notice returned if the data type for column
in the query
definition is of an ambiguous type.
Use CREATE VIEW
to define a new table view within the current
database.