replace view postgres code example
Example 1: sql view postgresql
CREATE OR REPLACE view_name
AS
query
Example 2: postgres create view
CREATE [ OR REPLACE ] [ TEMP | TEMPORARY ] VIEW name [ ( column_name [, ...] ) ]
[ WITH ( view_option_name [= view_option_value] [, ... ] ) ]
AS query