pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Philippe Salama <karebacnyc@yahoo.com>
To: PostgreSQL Admin <pgsql-admin@postgresql.org>
Subject: .bat file to access postgreSQL command line from C:\ Dos prompt
Date: Fri, 8 Dec 2006 17:00:35 -0800 (PST)
Message-ID: <788678.40442.qm@web90501.mail.mud.yahoo.com> (raw)

Thanks for your help!  And thanks to your help, I was able to figure out the following, as a psql.bat file on drive C:

cd program files
 cd postgreSQL
 cd 8.1
 cd bin
 psql -U postgres template1


I could not figure out how to make a path work in the .bat file if there is a space in PROGRAM FILES.  But it words if I just to a CD to each directory.

I have a paperback on PostgreSQL in which most of the exercises use the command line prompt.  Although I have found admin programs that allow me to access PostgreSQL nicely, I want to learn about the command line.

I also have a 1984 book on SQL by Lantimes, and I put all the exercise tables int o MySQL.  Then, I exported the tables to an SQL script, and modified the script so that it would run in PostgreSQL.  If anyone is interested, I can provide that script.

I would also like to go through the some of Joe Celko's books, like SQL for Smarties, and I plan to put the test tables into PostgreSQL and also MySQL.

But if anyone has any test tables from SQL instruction books, let me know.

I will be happy to share what I have with others if there is some interest.  

I feel that if the test data for such SQL exercises is made available on the Internet, then it will encourage more people to learn SQL.



 
---------------------------------
Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster.

view thread (4+ messages)  latest in thread

Message-ID: <788678.40442.qm@web90501.mail.mud.yahoo.com>
Permalink:  ../788678.40442.qm@web90501.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/788678.40442.qm@web90501.mail.mud.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: karebacnyc@yahoo.com
  Subject: Re: .bat file to access postgreSQL command line from C:\ Dos prompt
  In-Reply-To: <788678.40442.qm@web90501.mail.mud.yahoo.com>
  References: <788678.40442.qm@web90501.mail.mud.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox