Re: create table like syntax

Поиск
Список
Период
Сортировка
От Gaetano Mendola
Тема Re: create table like syntax
Дата
Msg-id 43466BE3.40200@bigfoot.com
обсуждение исходный текст
Ответ на create table like syntax  (David Durham <ddurham@vailsys.com>)
Список pgsql-admin
David Durham wrote:
> is there a syntax that would look something like:
>
>     create table newTable like oldTable without indexes || records ||
> constraints with indexes || records || constraints
>
> built into postgres?
>

Try this:

create table newTable as
select * from oldTable limit 0;



Regards
Gaetano Mendola


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

Предыдущее
От: Gourish Singbal
Дата:
Сообщение: horology test failed
Следующее
От: Gourish Singbal
Дата:
Сообщение: Re: horology test failed