Who Can Drop a Table?
The DROP TABLE statement can be executed by:
-
The owner of the table
-
Users with the
DROP ANY TABLEprivilege
Renaming a Column: the TO Clause
Changing the Data Type of a Column: the TYPE Clause
Changing the Position of a Column: the POSITION Clause
The DROP DEFAULT and SET DEFAULT Clauses
The SET NOT NULL and DROP NOT NULL Clauses
The COMPUTED [BY] or GENERATED ALWAYS AS Clauses
The DROP TABLE statement can be executed by:
The owner of the table
Users with the DROP ANY TABLE privilege
DROP TABLECOUNTRY table.DROP TABLE COUNTRY;
RECREATE TABLEDrops a table if it exists, and creates a table
DSQL
RECREATE [GLOBAL TEMPORARY] TABLE tablename
[EXTERNAL [FILE] 'filespec']
(<col_def> [, {<col_def> | <tconstraint>} ...])
[{<table_attrs> | <gtt_table_attrs>}]
See the CREATE TABLE section for the full syntax of CREATE TABLE and descriptions of defining tables, columns and constraints.
RECREATE TABLE creates or recreates a table.If a table with this name already exists, the RECREATE TABLE statement will try to drop it and create a new one.Existing dependencies will prevent the statement from executing.
RECREATE TABLECOUNTRY table.RECREATE TABLE COUNTRY (
COUNTRY COUNTRYNAME NOT NULL PRIMARY KEY,
CURRENCY VARCHAR(10) NOT NULL
);