Re: Batch Definitions - Need Help

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Batch Definitions - Need Help
Дата
Msg-id 10723.1118709951@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Batch Definitions - Need Help  ("Michael Avila" <mavila@mich.com>)
Ответы Re: Batch Definitions - Need Help  (John DeSoi <desoi@pgedit.com>)
Список pgsql-novice
"Michael Avila" <mavila@mich.com> writes:
> Oppps! I forgot only one word in my description - BATCH. Apologies. Makes a
> BIG difference.

> I want to load table definitions and insert data from a batch file. The
> batch file was created from a MySQL database so I know I will have to make
> some changes.

Either
psql mydb <batchfile
or
psql -f batchfile mydb

... edit out MySQL-isms, lather rinse repeat ...

I don't know exactly what a MySQL batch file looks like, in particular
whether they do anything nonstandard for bulk data load.  To the extent
that the file contains reasonably-standard SQL commands, though, it
should work.

            regards, tom lane

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

Предыдущее
От: "Michael Avila"
Дата:
Сообщение: Re: Batch Definitions - Need Help
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: Wrong SQLSTATE returned?