From: | John DeSoi <desoi(at)pgedit(dot)com> |
---|---|
To: | Don Parris <gnumathetes(at)gmail(dot)com> |
Cc: | PGSQL-Novice List <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: Using Batch Files to Create DB Structure |
Date: | 2005-07-15 05:30:50 |
Message-ID: | B1820BF6-F00C-432F-A3CA-1D51AA086C55@pgedit.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
On Jul 14, 2005, at 1:55 AM, Don Parris wrote:
> Is this possible with PGSQL? Can I do this, for instance:
> psql -W mydb < /file/path/batchfile.sql
>
> and get all my tables created?
>
> Or is this why there are a dozen languages for server programming? If
> redirecting the input from a batchfile is possible, please point me to
> the right documentation.. If not, I'll go back to the languages
> section of the manual. Many thanks in advance.
Yes, PostgreSQL has command line tool like mysql. The manual location
is:
http://www.postgresql.org/docs/8.0/interactive/app-psql.html
John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Kretschmer | 2005-07-15 07:52:13 | Re: [despammed] CSV Import? |
Previous Message | Michael Fuhr | 2005-07-15 03:30:27 | Re: MOVE BACKWARD ALL IN my_cursor inside of function? |