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-14 18:27:04
Message-ID: 3BF2B778.6062582@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.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bryan White 2001-11-14 18:45:15 Re: multiple hard disk
Previous Message Luis Amigo 2001-11-14 18:22:44 multiple hard disk