Previous Topic

Next Topic

Drop Rule

Valid in: SQL, ESQL

The Drop Rule statement removes the specified rule from the database. (A rule is dropped automatically if the table on which the rule is defined is dropped.)

Previous Topic

Next Topic

Syntax

The Drop Rule statement has the following format:

[EXEC SQL] DROP RULE [schema.]rulename;

Previous Topic

Next Topic

Embedded Usage

In an embedded Drop Rule statement, a host language variable cannot be used to represent the rule name.

Previous Topic

Next Topic

Permissions

You must be the owner of a rule.

Previous Topic

Next Topic

Related Statements

Create Rule

Create Procedure

Previous Topic

Next Topic

Example: Drop Rule

The following example drops the chk_name rule:

drop rule chk_name;


© 2007 Ingres Corporation. All rights reserved.