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


1  EXECUTE FUNCTION
1 admin
1 task
2  ( "drop database"
2  , "database_name"
2  ) ;
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 named demodbs:
EXECUTE FUNCTION task("drop database","demodbs");