Re: [SQL] Running queries from scripts.

2000-07-06 Thread DalTech - Continuing Technical Education
> It works for me, for example, this way: > athens% psql -d template1 -c "select datname from pg_database" Thanks, I feel a little sheepish at not trying it with quotes around the query, but the manuals don't mention that you have to enclose the query in quotes when you use the -c option. -Chris

Re: [SQL] Running queries from scripts.

2000-07-06 Thread Margarita Barvinok
Hi, It works for me, for example, this way: athens% psql -d template1 -c "select datname from pg_database" datname --- template1 postgres biology test (4 rows) Hope this helps, -Rita On Thu, 6 Jul 2000, DalTech - Continuing Technical Education wrote: > I was wondering if any