Hi,
Im v.new to postgres. I needed some help writing batch files.
I wanted to run psql commands in a batch file.
I give 2 inputs to the batch file -- Username and Database name
I want my batch file to do the following things.
- check if a database created by that user exists if true return 1 else return 0
Anyone who knows how to do this , please help !
Im v.new to postgres. I needed some help writing batch files.
I wanted to run psql commands in a batch file.
I give 2 inputs to the batch file -- Username and Database name
I want my batch file to do the following things.
- check if a database created by that user exists if true return 1 else return 0
Anyone who knows how to do this , please help !
Comment