WITH CHECK OPTION
The optional WITH CHECK OPTION
clause requires an updatable view to check whether new or updated data meet the condition specified in the WHERE
clause of the SELECT
statement.Every attempt to insert a new record or to update an existing one is checked whether the new or updated record would meet the WHERE
criteria.If they fail the check, the operation is not performed and an error is raised.
WITH CHECK OPTION
can be specified only in a CREATE VIEW
statement in which a WHERE
clause is present to restrict the output of the main SELECT
statement.An error message is returned otherwise.
Important
|
Please note:
If Furthermore, view fields omitted from the For views that do not have |