How to run an Update in .bat file

0

I'm trying to generate a bat file, where you enter my postgres database and run an update referenced to a SET, I enclose my sentence

@echo off

set /p OPERACION=¿CUAL ES EL NUMERO DE OPREACION QUE DESEAS HABILITAR RESPUESTA?: 

cd C:\Program Files\PostgreSQL.3\bin

psql -p 5432 -h DBA2 -d BaseCrediSolucion -U postgres -w postgres -c "UPDATE tfing11 SET vgret='S' WHERE vgope1=%OPERACION%"
    
asked by Derlis Cabrera 28.09.2017 в 13:41
source

0 answers