oracle查看视图主键,oracle – 使用主键创建视图

View Constraints

Oracle does not enforce view constraints. However, operations on views

are subject to the integrity constraints defined on the underlying

base tables. This means that you can enforce constraints on views

through constraints on base tables.

Notes on View Constraints View constraints are a subset of table

constraints and are subject to the following restrictions:

You can specify only unique, primary key, and foreign key constraints

on views. However, you can define the view using the WITH CHECK OPTION

clause, which is equivalent to specifying a check constraint for the

view.

View constraints are supported only in DISABLE NOVALIDATE mode. You

cannot specify any other mode. You must specify the keyword DISABLE

when you declare the view constraint. You need not specify NOVALIDATE

explicitly, as it is the default.

The RELY and NORELY parameters are optional. View constraints, because

they are unenforced, are usually specified with the RELY parameter to

make them more useful. The RELY or NORELY keyword must precede the

DISABLE keyword. Please refer to “RELY Clause” for more information.

Because view constraints are not enforced directly, you cannot specify

INITIALLY DEFERRED or DEFERRABLE.

You cannot specify the using_index_clause, the exceptions_clause

clause, or the ON DELETE clause of the references_clause.

You cannot define view constraints on attributes of an object column.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值