Re: How to import *.sql file to postgresql database

Поиск
Список
Период
Сортировка
От Szymon Guz
Тема Re: How to import *.sql file to postgresql database
Дата
Msg-id AANLkTimtfJVqyAyNVde4iIfDiU2Q2GnNlifqI0esD9Zg@mail.gmail.com
обсуждение исходный текст
Ответ на How to import *.sql file to postgresql database  (Andre Lopes <lopes80andre@gmail.com>)
Ответы Re: How to import *.sql file to postgresql database  (Andre Lopes <lopes80andre@gmail.com>)
Список pgsql-general


2010/7/18 Andre Lopes <lopes80andre@gmail.com>
Hi,

I have a DUMP file with INSERT's commands. I need to import this data to postgresql database with the "psql" command.

How can I do this task?

Best Regards,

Hi,
you can do that for example using the following command:

psql <database> < file.sql

where <datatabase> is the name of the database you use.

regards
Szymon Guz

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

Предыдущее
От: Andre Lopes
Дата:
Сообщение: How to import *.sql file to postgresql database
Следующее
От: Osvaldo Kussama
Дата:
Сообщение: Re: How to import *.sql file to postgresql database