Re: CREATE table1 FROM table2

Поиск
Список
Период
Сортировка
От L.V.Boldareva
Тема Re: CREATE table1 FROM table2
Дата
Msg-id 98966401561.20030623172606@pierro.dds.nl
обсуждение исходный текст
Ответ на Re: CREATE table1 FROM table2  (Devrim GUNDUZ <devrim@gunduz.org>)
Ответы Re: CREATE table1 FROM table2  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: convert_numeric_to_scalar: unsupported type 354210
Следующее
От: "Chad Thompson"
Дата:
Сообщение: Re: Urgent Help : Use of return from function/procedure.