ITedite

SQL文のバッチ処理

SQL文をbatch.sqlに記述しておき、testdbに対して実行するとき

postgres$ psql testdb -U postgres -f batch.sql