Re: Move table between schemas - Mailing list pgsql-sql

From Andrew Sullivan
Subject Re: Move table between schemas
Date
Msg-id 20041116110538.GA15247@phlogiston.dyndns.org
Whole thread Raw
In response to Move table between schemas  (Markus Schaber <schabios@logi-track.com>)
Responses Re: Move table between schemas
Re: Move table between schemas
List 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 by date:

Previous
From: Markus Schaber
Date:
Subject: Move table between schemas
Next
From: Gary Stainburn
Date:
Subject: tree structure photo gallery date quiery