aliasing and/or defining types

Поиск
Список
Период
Сортировка
От Matt Clark
Тема aliasing and/or defining types
Дата
Msg-id 200303271952.h2RJqqS22191@rushe.aero.org
обсуждение исходный текст
Список pgsql-novice
Is there a simple way to create a type, which is a derived from an existing
type?

I need something like

create type newID as numeric(16,0);

create table xx (tid newID,.....);

I have existing SQL, with several types defined as above.
I hope not to have to edit all occurrences of "newID".......

Note that it's not a composite type, but just an instance of an existing type.

Thanks,

Matt


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

Предыдущее
От: Ennio-Sr
Дата:
Сообщение: Extended display and extended ascii characters
Следующее
От: Vittorio Zuccala'
Дата:
Сообщение: Re: get the oid