Re: Enumerated data type

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Enumerated data type
Дата
Msg-id Pine.LNX.4.21.0005022200330.362-100000@localhost.localdomain
обсуждение исходный текст
Ответ на Enumerated data type  ("Anand Raman" <araman@india-today.com>)
Ответы Re: Enumerated data type  (Tom Cook <tcook@lisa.com.au>)
Список pgsql-general
Anand Raman writes:

> Is there anything equivalent to the enumerated data types in
> postgresql..

You might find that strings with check constraints will do the job, e.g.

create table my_tbl (
 ...
 color text check color in ('blue', 'green', 'white'),
 ...
);


--
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden


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

Предыдущее
От: "Steve Wolfe"
Дата:
Сообщение: Re: RE: One last thing... psql and readline
Следующее
От: "Culberson, Philip"
Дата:
Сообщение: RE: Need help with attributes...