Re: Re: check constraint

From: Tulio Oliveira <mestredosmagos(at)marilia(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Re: check constraint
Date: 2000-12-18 23:26:07
Message-ID: 3A3E9D0F.8051B124@marilia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Martin A. Marques" wrote:
>
> 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
> -----------------------------------------------------------------

Off course NOT.

If you put an OR, all numbers will be accept....

--
======================================================
AKACIA TECNOLOGIA
Desenvolvimento de sistemas para Internet
www.akacia.com.br

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-12-18 23:31:05 Re: Re: a "huge" table with small rows and culumns
Previous Message Tulio Oliveira 2000-12-18 23:24:09 Trigger running with "postgres" superuser permissions