Drop Index Statement; Syntax Description Of Drop Index; Considerations For Drop Index; Authorization And Availability Requirements - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

DELETE FROM sales.orders
WHERE salesrep = 220 AND custnum <> 1234;
--- 2 row(s) deleted.
Remove all suppliers not in Texas from the table PARTSUPP:
DELETE FROM invent.partsupp
WHERE suppnum IN
(SELECT suppnum FROM samdbcat.invent.supplier
WHERE state <> 'TEXAS');
--- 41 row(s) deleted.
This statement achieves the same result:
DELETE FROM invent.partsupp
WHERE suppnum NOT IN
(SELECT suppnum FROM samdbcat.invent.supplier
WHERE state = 'TEXAS');
--- 41 row(s) deleted.

DROP INDEX Statement

"Syntax Description of DROP INDEX"

"Considerations for DROP INDEX"

"Example of DROP INDEX"

The DROP INDEX statement deletes a Neoview SQL index. See
(page
196).
DROP INDEX is a Neoview SQL extension.
DROP [VOLATILE] INDEX index
Syntax Description of DROP INDEX
index
is the index to drop.
For information, see
Considerations for DROP INDEX

Authorization and Availability Requirements

To drop an index, you must be the owner of the schema.

Indexes That Support Constraints

Neoview SQL uses indexes to implement some constraints. If you use the DROP CONSTRAINT
option in an ALTER TABLE statement, Neoview SQL drops indexes that it created to implement
that constraint.
Example of DROP INDEX
This example drops an index:
DROP INDEX myindex;
This example drops a volatile index:
DROP VOLATILE INDEX vindex;
"Identifiers" (page
220).
"Database Object Names"
DROP INDEX Statement
93

Advertisement

Table of Contents
loading

Table of Contents