check constraint - Mailing list pgsql-general

From Martin A. Marques
Subject check constraint
Date
Msg-id 00121812300603.21897@math.unl.edu.ar
Whole thread Raw
Responses Re: check constraint  (oberpwd@anubis.network.com (Wade D. Oberpriller))
List pgsql-general
Hi,
    how should I write a constraint that can keep an INT field with values
between 0 and 10? Do I have to use two checks on the same field?

TIA

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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: More on character encoding in SELECTs
Next
From: oberpwd@anubis.network.com (Wade D. Oberpriller)
Date:
Subject: Re: check constraint