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
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
- DROP DOMAIN for removing domains
- Data Types for an overview of the type system