Description
Deleting a specified object refers to removing an existing database object in the database, such as a table, view, index, function, etc. This operation is irreversible; once executed, the deleted object and all its data will be permanently removed from the database.
Syntax
DROP
: Keyword, indicates the execution of a delete operation.<object_type>
: The type of object to be deleted, such as TABLE, VIEW, INDEX, FUNCTION, etc.IF EXISTS
: Optional clause, if the specified object exists, the delete operation is executed; if it does not exist, no operation is performed and no error is thrown.<identifier>
: The name of the specific object to be deleted, such as table name, view name, etc.