Re: check constraint

From: "Martin A(dot) Marques" <martin(at)math(dot)unl(dot)edu(dot)ar>
To: oberpwd(at)anubis(dot)network(dot)com (Wade D(dot) Oberpriller)
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: check constraint
Date: 2000-12-18 22:57:57
Message-ID: 00121819575701.25006@math.unl.edu.ar
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

El Lun 18 Dic 2000 12:43, Wade D. Oberpriller escribió:
> You should be able to do the following:
>
> CREATE TABLE table1 (
> field1 INTEGER CHECK ((field1 >= 0) AND (field1 <= 10))
> );

Can I put an OR there?

--
System Administration: It's a dirty job,
but someone told I had to do it.
-----------------------------------------------------------------
Martín Marqués email: martin(at)math(dot)unl(dot)edu(dot)ar
Santa Fe - Argentina http://math.unl.edu.ar/~martin/
Administrador de sistemas en math.unl.edu.ar
-----------------------------------------------------------------

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tulio Oliveira 2000-12-18 23:23:39 "C" libpq-fe.h
Previous Message Feng Xue 2000-12-18 22:55:40 Re: a "huge" table with small rows and culumns