Re: Are globally defined constants possible at all ?

From: Andrew Sullivan <andrew(at)libertyrms(dot)info>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Are globally defined constants possible at all ?
Date: 2002-06-07 22:04:47
Message-ID: 20020607180447.B30966@mail.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jun 07, 2002 at 05:29:27PM -0400, Gregory Seidman wrote:
>
> Er, could you expand on that? Are you suggesting something like this:
>
> CREATE TABLE Foo (
> KindID int,
> ...
> CONSTRAINT fooenum
> CHECK KindID IN ('SOFTWARE', 'HARDWARE')
> );

Yes. Except I think you need another set of parentheses

check("KindID" IN ('SOFTWARE','HARDWARE'))

A

--
----
Andrew Sullivan 87 Mowat Avenue
Liberty RMS Toronto, Ontario Canada
<andrew(at)libertyrms(dot)info> M6K 3E3
+1 416 646 3304 x110

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2002-06-07 23:54:27 Re: Non-linear Performance
Previous Message Darren Ferguson 2002-06-07 21:49:41 Re: Are globally defined constants possible at all ?