Re: DOMAIN NEED CAST ?

Поиск
Список
Период
Сортировка
От ivan
Тема Re: DOMAIN NEED CAST ?
Дата
Msg-id Pine.LNX.4.56.0308182012050.24969@rex.anfa.pl
обсуждение исходный текст
Ответ на Re: DOMAIN NEED CAST ?  (Rod Taylor <rbt@rbt.ca>)
Список pgsql-hackers

ok, but in this use, but when i need to create datatype,
which i use in other tables (to be sure that always is this same)
i need to always writing casting to convert int to int ?

On Sun, 17 Aug 2003, Rod Taylor wrote:

> On Sun, 2003-08-17 at 14:30, ivan wrote:
> > but in real alias_to_int is equal to int, only with other name;
> > its should be like typedef from c/c++ ?
>
> Not necessarily.
>
> CREATE DOMAIN alias_to_int AS INT CHECK(VALUE BETWEEN 1 AND 4);
>
> The above is very different than plain old integer.
>


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

Предыдущее
От: ivan
Дата:
Сообщение: numbers format
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Qualified tables in error messages