Re: enum data type

Поиск
Список
Период
Сортировка
От Szabo Zoltan
Тема Re: enum data type
Дата
Msg-id 3BB824AD.6070703@mportal.hu
обсуждение исходный текст
Ответ на enum data type  (travis <smitht@cache.net>)
Список pgsql-general
Hi,
you can use the check.

create table language (
         lang_id SERIAL primary key,
         shortcut char(2) not null unique check (shortcut in
('en','nl','de'))
);

CoL

travis wrote:

> can somebody point me in the direction of info on how to implement an
> 'enum' data type?
>
> trav
>
>
> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----==  Over 80,000 Newsgroups - 16 Different Servers! =-----
>


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

Предыдущее
От: "Andy Hallam"
Дата:
Сообщение: Re: CREATION OF PRIMARY KEYS
Следующее
От: "sreedhar"
Дата:
Сообщение: