Re: [SQL] Running a file
Kaare Rasmussen <kar@webline.dk>
From: Kaare Rasmussen <kar@webline.dk>
To: psql sql <pgsql-sql@postgresql.org>
Cc: psql Admin <pgsql-admin@postgresql.org>, psql sql <pgsql-sql@postgresql.org>
Date: 2000-12-25T14:03:37Z
Lists: pgsql-sql
> Are you talking about writing external scripts and importing them into > Postgres in a manner similar to the @ function in SQL*Plus? In psql, you > can use \i to import scripts to do that. If it's to be used in shell scripts, it's just as easy to pipe: psql dbname<create_table.sql -- Kaare Rasmussen --Linux, spil,-- Tlf: 3816 2582 Kaki Data tshirts, merchandize Fax: 3816 2501 Howitzvej 75 ben 14.00-18.00 Email: kar@webline.dk 2000 Frederiksberg Lrdag 11.00-17.00 Web: www.suse.dk