Could you help me create windows start.bat file which allow run psql.exe and do something like next:
Delete db1 if exist
Create db1
Connect db1
Create table t1
Delete db2 if exist
Create db2
Connect db2
Create table t2
I can do it step by step from the psql console, but don't understand how to do it from a batch *.bat file. For example if I write a string like:
psql -U postgres db1, it connects to the db1, and stop execute other script cmds.. that's problem.