drop database argument: Drop a database (SQL administration API)
Use the drop database argument with the admin() or task() function to drop a database.
Syntax
Element | Description | Key Considerations |
---|---|---|
database_name | The name of the database. |
Usage
This function is equivalent to the DROP DATABASE statement. This function deletes the entire database, including all of the system catalog tables, objects, and data.
Example
The following example drops the database nameddemodbs
:EXECUTE FUNCTION task("drop database","demodbs");