Answers for "psql client write to bash variable"

SQL
1

psql client write 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 January-08-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language