From: | Oliver Elphick <olly(at)lfix(dot)co(dot)uk> |
---|---|
To: | "Muhyiddin A(dot)M Hayat" <middink(at)indo(dot)net(dot)id> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Column Types |
Date: | 2003-09-14 07:53:38 |
Message-ID: | 1063526018.18284.21.camel@linda.lfix.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Sun, 2003-09-14 at 07:49, Muhyiddin A.M Hayat wrote:
> If in MySQL i'm using type EMUN what type in Postgres?
Use a CHECK constraint:
CREATE TABLE xxx (
...
colour TEXT CHECK (colour IN ('red', 'green', 'blue')),
...
);
--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"But without faith it is impossible to please him; for
he that cometh to God must believe that he is, and
that he is a rewarder of them that diligently seek
him." Hebrews 11:6
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Childs | 2003-09-14 08:26:50 | Re: A generic trigger? |
Previous Message | Muhyiddin A.M Hayat | 2003-09-14 07:53:25 |