Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to run sql script in postgresql

export PGPASSWORD=<password>
psql 
  -h <host> 
  -d <db> 
  -U <user> 
  -p 5432 
  -a 
  -q 
  -f <path_to_file>
 
PREVIOUS NEXT
Tagged: #run #sql #script #postgresql
ADD COMMENT
Topic
Name
9+4 =