Re: enumeration datatype in postgresql?

From: Szabo Zoltan <col(at)econet(dot)hu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: enumeration datatype in postgresql?
Date: 2001-09-10 11:21:37
Message-ID: 3B9CA241.E2102E55@econet.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi, enum is a very stupid thing in mysql :)
Use check in psql.
http://www.postgresql.org/idocs/index.php?sql-createtable.html
Sample:
create table mytable (
shortcut char(2) check (shortcut in ('en','nl','de'))
);

Marc Lambrichs wrote:

> Is there an enumeration datatype in postgresql like the enum in mysql?
>
> Cheers,
> Marc

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tille, Andreas 2001-09-10 11:45:12 Performance question
Previous Message Szabo Zoltan 2001-09-10 11:16:51 Re: Case sensitivity issue