| От | Jan Poslusny |
|---|---|
| Тема | Re: making a copy of a table within the same database |
| Дата | |
| Msg-id | 4045F777.8010902@gingerall.cz обсуждение исходный текст |
| Ответ на | making a copy of a table within the same database ("Sally Sally" <dedeb17@hotmail.com>) |
| Список | pgsql-general |
create table newtable as select * from oldtable; :) Sally Sally wrote: > I wanted to dump the contents of one table to another (with a > different name) within the same database. I am looking at pg_restore > and it doesn't seem to have the option of specifying the name of the > table we want to dump to, only the name we want to dump from. Does > this mean I have to create the table and do an sql statement to copy > the table? Is this the best way? > Sally > > _________________________________________________________________ > Fast. Reliable. Get MSN 9 Dial-up - 3 months for the price of 1! > (Limited-time Offer) > http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/ > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster >
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера