create type with %type or %rowtype

Поиск
Список
Период
Сортировка
От Post Gresql
Тема create type with %type or %rowtype
Дата
Msg-id 4fb49f43-6753-b692-9ca7-61052f63a929@taljaren.se
обсуждение исходный текст
Ответы Re: create type with %type or %rowtype
Re: create type with %type or %rowtype
Список pgsql-general
Hello.

It seems that I can not create a type with

create type my_type as my_table%rowtype;

or

create type my_type as my_table.my_column%type;

Correct? It seems to be a feature for plpgsql programing only, right?

But wouldn't that be a good thing to be able to do? Or would it cause 
too many problems?


Best regards





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