Re: create table and data types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: create table and data types
Дата
Msg-id 23215.1139954794@sss.pgh.pa.us
обсуждение исходный текст
Ответ на create table and data types  (Maciej Piekielniak <piechcio@isb.com.pl>)
Список pgsql-sql
Maciej Piekielniak <piechcio@isb.com.pl> writes:
>   Is anybody know how create field in a new table with data type accuiring from a field in other table?

Sorry, the %TYPE syntax only works in function declarations at the
moment.

It could possibly be made to work in table declarations --- there are
syntactic conflicts with allowing it in general, but I'm not sure that
objection applies to table declarations.  But it's not there today.
        regards, tom lane


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

Предыдущее
От: Maciej Piekielniak
Дата:
Сообщение: Re: create table and data types
Следующее
От: Ken Hill
Дата:
Сообщение: Re: create table and data types