Drop Schema from Postgresql

view full story

http://serverfault.com – I am trying to execute a few postgres commands from a bash file. I am trying to drop a schema by writing the following line DROP SCHEMA "xxx" IF EXISTS I have two issues here I am not sure how to specify the db from which the schema should be deleted I am getting the following error message -- "DROP: command not found" Can anyone help me with this issue? (HowTos)