1.1.1

Table Of Contents
Syntax
DROP TABLE [ IF EXISTS ] [schema-name.]table-name
Description
Removes the specied table. Include the IF EXISTS clause to execute the statement only if the specied table
exists in SQLFire. The schema-name. prex is optional if you are currently using the schema that contains the
table.
Note: Triggers, constraints (primary, unique, check and references from the table being dropped) and
indexes on the table are silently dropped. Dropping a table invalidates statements that depend on the table.
DROP TRIGGER
Remove the specied trigger.
Syntax
DROP TRIGGER [ IF EXISTS ] trigger-name
Description
Removes the specied trigger. Include the IF EXISTS clause to execute the statement only if the specied
trigger exists in SQLFire.
Note: When a table is dropped, all triggers on that table are automatically dropped; in effect, a table's
triggers need not be explicitly dropped before dropping the table.
DROP TYPE
Remove a user-dened type (UDI) that was created with CREATE TYPE.
See CREATE TYPE on page 509.
Syntax
DROP TYPE [ IF EXISTS ] [ schema-name. ] SQL92Identifier RESTRICT
The type name consists of an optional schemaName and a SQL92Identier. If a schemaName is not provided,
the current schema is the default schema. If a qualied type name is specied, the schema name cannot begin
with SYS.
Include the IF EXISTS clause to execute the statement only if the specied type exists in SQLFire.
The RESTRICT keyword is required. CASCADE semantics are not supported. That is, SQLFire will not track
down and drop orphaned objects.
Dropping a UDT implicitly drops all USAGE privileges that reference it.
You cannot drop a type if it would make another SQL object unusable. This includes the following restrictions:
Table columns: No table columns have this UDT.
Views: No view denition involves expressions which have this UDT.
Constraints: No constraints reference expressions of this UDT.
Generated columns: No generated columns reference expressions of this UDT.
Routines: No functions or procedures have arguments or return values of this UDT.
Table Functions: No table functions return tables with columns of this UDT.
521
SQL Language Reference