Re: Moving a table to a different schema - Mailing list pgsql-general

From Andrew Sullivan
Subject Re: Moving a table to a different schema
Date
Msg-id 20030529183104.GN14390@libertyrms.info
Whole thread Raw
In response to Moving a table to a different schema  ("Jim C. Nasby" <jim@nasby.net>)
Responses Re: Moving a table to a different schema
List pgsql-general
On Thu, May 29, 2003 at 11:14:22AM -0500, Jim C. Nasby wrote:
> Is there a command to move an existing table to a different schema?

    CREATE TABLE targetschem.tablename AS
        SELECT * FROM sourceschem.tablename

would work.

A

--
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110


pgsql-general by date:

Previous
From: nolan@celery.tssi.com
Date:
Subject: Re: How to deny user changing his own password?
Next
From: Jeff Eckermann
Date:
Subject: Re: exporting join results