psql execute SQL script
June 17, 2010 19:39:14 Last update: June 17, 2010 19:39:14
There are two ways to run a SQL script with PostgreSQL:
- From shell:
$ psql theScript.sql
- Interactively:
postgres=# \i theScript.sql