Re: Alias to a type

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Alias to a type
Дата
Msg-id 42B95465.2060708@archonet.com
обсуждение исходный текст
Ответ на Alias to a type  (Veikko Mäkinen <veikko.makinen@ecom.fi>)
Ответы Re: Alias to a type
Список pgsql-sql
Veikko Mäkinen wrote:
> Hey,
>
> Is it possible to create a new type as an alias to a pre-defined type? I
> use "USERID varchar(20)" in almost every table I have I'd like to make
> an alias for that type eg.

CREATE DOMAIN username_string AS varchar(20);

Test it with your client applications though, make sure they cope. Some
don't cope well with user-defined types.
--   Richard Huxton  Archonet Ltd



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

Предыдущее
От: Sean Davis
Дата:
Сообщение: Re: Alias to a type
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Alias to a type