Re: Move table between schemas

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: Move table between schemas
Дата
Msg-id 20041116110538.GA15247@phlogiston.dyndns.org
обсуждение исходный текст
Ответ на Move table between schemas  (Markus Schaber <schabios@logi-track.com>)
Ответы Re: Move table between schemas  (Achilleus Mantzios <achill@matrix.gatewaynet.com>)
Re: Move table between schemas  (Markus Schaber <schabios@logi-track.com>)
Список pgsql-sql
On Tue, Nov 16, 2004 at 10:02:34AM +0100, Markus Schaber wrote:
> Hello,
> 
> Is there an easy way to move a table to another schema in PostgreSQL 7.4?
> 
> ALTER TABLE and ALTER SCHEMA don't have this options.

CREATE TABLE newschema.newtable AS SELECT * FROM oldschema.oldtable 

oughta work.

A

-- 
Andrew Sullivan  | ajs@crankycanuck.ca
When my information changes, I alter my conclusions.  What do you do sir?    --attr. John Maynard Keynes


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

Предыдущее
От: Markus Schaber
Дата:
Сообщение: Move table between schemas
Следующее
От: Gary Stainburn
Дата:
Сообщение: tree structure photo gallery date quiery