DROP TYPE
Turso Extension: DROP TYPE is a Turso-specific statement not available in standard SQLite. This feature is experimental and must be enabled before use.
Syntax
Description
DROP TYPE removes the named custom type from the database. The type must exist unless theIF EXISTS clause is specified.
Clauses
| Clause | Description |
|---|---|
IF EXISTS | Suppresses the error that would occur if the type does not exist. The statement is a no-op when the type is not found. |
type-name | The name of the custom type to remove. |
Restrictions
A type cannot be dropped while any table column uses it. All columns of that type must be removed or the table must be dropped before the type can be dropped.Examples
Drop a Custom Type
Drop a Type with IF EXISTS
See Also
- CREATE TYPE for defining custom types
- Data Types for an overview of the type system