Answers for "how to store psql output in variable in psql"

0

postgresql print variable

raise notice 'Value: %', deletedContactId;
Posted by: Guest on May-29-2021
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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language