postgresql - How to execute *.sql file using psql -


created index.sql file contains index creating script 95 table

for example

drop index if exists gtab03_vrctrlid_idx cascade; create unique index gtab03_vrctrlid_idx on gtab03 using btree (vrctrlid); 

i have consolidated table's index creating script file called index.sql need run entire script @ time,is possible execute index.sql file using psql

database : postgresql

is u mean?

\i e:/myfolder/index.sql; 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -