Re: CREATE table1 FROM table2 - Mailing list pgsql-sql

From L.V.Boldareva
Subject Re: CREATE table1 FROM table2
Date
Msg-id 98966401561.20030623172606@pierro.dds.nl
Whole thread Raw
In response to Re: CREATE table1 FROM table2  (Devrim GUNDUZ <devrim@gunduz.org>)
Responses Re: CREATE table1 FROM table2
List pgsql-sql
Hello!

many people posted their answer to this simple question. however,
neither
CREATE TABLE AS
nor
SELECT INTO

do not take care about keys and triggers, etc.

The commands above only copy the structure of the table, and the data.
Are there any workarounds fr copying the table as a whole object?

thanks,
Mila


> Hi,

> On 17 Jun 2003, Rado Petrik wrote:

>> How I create table1 from other table2 . 

> CREATE TABLE table1 AS SELECT * FROM table2;

> will work.

> Regards,



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: convert_numeric_to_scalar: unsupported type 354210
Next
From: "Chad Thompson"
Date:
Subject: Re: Urgent Help : Use of return from function/procedure.