| От | Ragnar |
|---|---|
| Тема | Re: move from 1 database to another |
| Дата | |
| Msg-id | 1148597676.8566.17.camel@localhost.localdomain обсуждение исходный текст |
| Ответ на | move from 1 database to another ("P.M" <pmdanger@yahoo.com>) |
| Ответы |
Re: move from 1 database to another
|
| Список | pgsql-general |
On fim, 2006-05-25 at 11:52 -0700, P.M wrote: > I would like to know how can i move from 1 database to another one ? > > basically i want to run a *.sql script in which i connect under a > particular database (for example : template1 or postgres) and my *.sql > script should create a new database (for example : test) and after > execute several SQL command under test database. I guess you are asking how to connect to a new database in the middleof a sql script Assuming the script will be run by psql, you can use \connect test gnari
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера