Answers for "postgres out parameters into linux variable"

1

postgres output to bash variable

vartest=`psql -X -A -d $dbname -U $username -h localhost -p 5432 -t -c "SELECT gid FROM testtable WHERE aid='1'"`
Posted by: Guest on March-31-2020
0

pass parameters into postgres bash

psql -v v1=12  -v v2="'Hello World'" -v v3="'2010-11-12'"
Posted by: Guest on April-01-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language