Re: enumeration datatype in postgresql? - Mailing list pgsql-general

From Szabo Zoltan
Subject Re: enumeration datatype in postgresql?
Date
Msg-id 3B9CA241.E2102E55@econet.hu
Whole thread Raw
List 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


pgsql-general by date:

Previous
From: "Brian Smith"
Date:
Subject: Mosix
Next
From: "Ligia Pimentel"
Date:
Subject: Blob datatype / image storing in postgres