Create View

Creates a view on a table.

CREATE VIEW view AS query

Use CREATE VIEW to define a new table view within the current database.

The following example creates a view of publishers whose names begin with H:

booktown=# CREATE VIEW h_publishers AS
booktown-#        SELECT * FROM publishers WHERE name LIKE 'H%';
CREATE