postgraSql supports two ways that View can be modified.

http://www.postgresqltutorial.com/postgresql-views/

 

Detailed introduction of Create Rule: (supported above version 9.3)

https://www.postgresql.org/docs/10/static/sql-createrule.html

CREATE [ OR REPLACE ] RULE name AS ON event
    TO table_name [ WHERE condition ]
    DO [ ALSO | INSTEAD ] { NOTHING | command | ( command ; command ... ) }

where event can be one of:

    SELECT | INSERT | UPDATE | DELETE 

CHECK OPTION information introduction: (supported on version 9.3 and above)
https://www.postgresql.org/docs/current/static/sql-createview.html
CREATE [ OR REPLACE ] [ TEMP | TEMPORARY ] [ RECURSIVE ] VIEW name [ ( column_name [, ...] ) ]
    [ WITH ( view_option_name [= view_option_value] [, ... ] ) ]
    AS query
    [ WITH [ CASCADED | LOCAL ] CHECK OPTION ]
 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324970724&siteId=291194637