码迷,mamicode.com
首页 > 数据库 > 详细

postgraSql支持View可以修改的两种方法。

时间:2018-04-26 14:36:27      阅读:550      评论:0      收藏:0      [点我收藏+]

标签:base   支持   ble   ade   ocs   htm   sql   版本   ati   

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

 

Create Rule的详细介绍:(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信息介绍:(9.3版本以上支持)
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 ]
 

postgraSql支持View可以修改的两种方法。

标签:base   支持   ble   ade   ocs   htm   sql   版本   ati   

原文地址:https://www.cnblogs.com/aoyihuashao/p/8952005.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!