pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedColumn Types
2+ messages / 2 participants
[nested] [flat]
* Column Types
@ 2003-09-14 06:49 Muhyiddin A.M Hayat <middink@indo.net.id>
0 siblings, 1 reply; 2+ messages in thread
From: Muhyiddin A.M Hayat @ 2003-09-14 06:49 UTC (permalink / raw)
To: pgsql-sql
If in MySQL i'm using type EMUN what type in Postgres?
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Column Types
@ 2003-09-14 07:53 Oliver Elphick <olly@lfix.co.uk>
parent: Muhyiddin A.M Hayat <middink@indo.net.id>
0 siblings, 0 replies; 2+ messages in thread
From: Oliver Elphick @ 2003-09-14 07:53 UTC (permalink / raw)
To: Muhyiddin A.M Hayat <middink@indo.net.id>; +Cc: 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.Elphick@lfix.co.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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-09-14 07:53 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-09-14 06:49 Column Types Muhyiddin A.M Hayat <middink@indo.net.id>
2003-09-14 07:53 ` Oliver Elphick <olly@lfix.co.uk>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox