问题描述
嗨,
我不确定是否使用只读和仅用于视图和表的检查选项语法。我在Oracle帮助中心上阅读了以下链接https://docs.oracle.com/en/database/oracle/oracle-database/20/sqlrf/CREATE-VIEW.html#GUID-61D2D2B4-DACC-4C7C-89EB-7E50D9594D30
据说:
使用只读
Specify 使用只读to indicate that the table or view cannot be updated.
带有检查选项
Specify 带有检查选项 to indicate that Oracle Database prohibits any changes to the table or view that would produce rows that are not included in the subquery. When used in the subquery of a DML statement, you can specify this clause in a subquery in the FROM clause but not in subquery in the WHERE clause.
希望收到您的回复。
谢谢,
克里斯。
我不确定是否使用只读和仅用于视图和表的检查选项语法。我在Oracle帮助中心上阅读了以下链接https://docs.oracle.com/en/database/oracle/oracle-database/20/sqlrf/CREATE-VIEW.html#GUID-61D2D2B4-DACC-4C7C-89EB-7E50D9594D30
据说:
使用只读
Specify 使用只读to indicate that the table or view cannot be updated.
带有检查选项
Specify 带有检查选项 to indicate that Oracle Database prohibits any changes to the table or view that would produce rows that are not included in the subquery. When used in the subquery of a DML statement, you can specify this clause in a subquery in the FROM clause but not in subquery in the WHERE clause.
希望收到您的回复。
谢谢,
克里斯。
专家解答
是的,根据我的经验,只有观点。
人们经常忘记视图可以更新,因此即使该视图包含联接,也可以更改基表。
因此,大多数视图可能应该默认使用只读选项创建,如果它们打算更新,那么使用检查确保人们不会更新 “离开他们的区域”。
人们经常忘记视图可以更新,因此即使该视图包含联接,也可以更改基表。
因此,大多数视图可能应该默认使用只读选项创建,如果它们打算更新,那么使用检查确保人们不会更新 “离开他们的区域”。
文章转载自ASKTOM,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




