Modifying check constraints

From: Paulo Jan <admin(at)digital(dot)ddnet(dot)es>
To: pgsql-general(at)postgresql(dot)org
Subject: Modifying check constraints
Date: 2001-11-13 15:24:50
Message-ID: 3BF13B42.92A3D6B0@digital.ddnet.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all:

Let's suppose I create a table with a CHECK constraint, like:

CREATE TABLE blabla (id int, tipo varchar(8),
CHECK tipo IN ('tipo1', 'tipo2', 'tipo3'))

Can I change the CHECK constraint afterwards? For example, can I
add another value that "tipo" can have, or I'd have to recreate the
table?

Paulo Jan.
DDnet.

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2001-11-13 17:45:18 Re: Behavior of nextval() and currval()
Previous Message Jeff Eckermann 2001-11-13 15:18:30 Re: Outer Joins