![]() |
|
Use the DROP ROW TYPE statement to remove an existing named-row type from the database.
You must be the owner of the row type or have the DBA privilege to use the DROP ROW TYPE statement.
You cannot drop a named-row type if the row type name is in use. You cannot drop a named-row type when any of the following conditions are true:
To drop a named-row type column from a table, use ALTER TABLE.
The DROP ROW TYPE statement does not drop unnamed-row types.
The RESTRICT keyword is required with the DROP ROW TYPE statement. RESTRICT causes DROP ROW TYPE to fail if dependencies on that named-row type exist.
The DROP ROW TYPE statement fails and returns an error message if:
The following statement drops the row type named employee_t:
Related statement: CREATE ROW TYPE
For a description of the system catalog tables, see the Informix Guide to SQL: Reference.
For a discussion of named-row types, see the Informix Guide to SQL: Tutorial.