I created this script, to clear the table from the bank and to clear id 's.
It works, but not the right way
It runs and authenticates on psql . but instead of running the sql command it only opens psql .
If someone has an exit already thank you.
@echo off
set PGUSER=####
set PGPASSWORD=#####
echo on
"D:\Programas\PostgreSQL\bin\psql.exe" -h localhost -p 5432 -U postgres pauliceia delete from bairros;
"D:\Programas\PostgreSQL\bin\psql.exe" -h localhost -p 5432 -U postgres pauliceia alter table bairros AUTO_INCREMENT = 1;