Re: Using Batch Files to Create DB Structure

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: Using Batch Files to Create DB Structure
Дата
Msg-id B1820BF6-F00C-432F-A3CA-1D51AA086C55@pgedit.com
обсуждение исходный текст
Ответ на Using Batch Files to Create DB Structure  (Don Parris <gnumathetes@gmail.com>)
Список 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


В списке pgsql-novice по дате отправления:

Предыдущее
От: Tino Wildenhain
Дата:
Сообщение: Re: [GENERAL] INSERT INTO from a SELECT query
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: [despammed] CSV Import?