Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

run all sql file from folder postgres command line

psql -h localhost -d userstoreis -U admin -p 5432 -a -q -f /home/jobs/Desktop/resources/postgresql.sql

-h PostgreSQL server IP address
-d database name
-U user name
-p port which PostgreSQL server is listening on
-f path to SQL script
-a all echo
-q quiet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #run #sql #file #folder #postgres #command #line
ADD COMMENT
Topic
Name
9+6 =