I need to create, manage and drop schemas on the fly. If I go to create a schema that already exists, I want to (conditionally, via external means) drop and recreate it as speci
This can be one of the approaches. Drop the schema first and then create it.
IF EXISTS: Do not throw an error if the schema does not exist. A notice is issued in this case.
So,
DROP SCHEMA IF EXISTS schema_Name Create SCHEMA schema_Name