Re: on update restrict

From: Alan Gutierrez <alangutierrez(at)hotmail(dot)com>
To: Jan Wieck <JanWieck(at)Yahoo(dot)com>
Subject: Re: on update restrict
Date: 2001-08-14 07:02:05
Message-ID: Pine.WNT.4.33.0108140658490.852-100000@CX1198465-B
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tue, 14 Aug 2001, Jan Wieck wrote:

> Mister ics wrote:
> > testdb=>create table t1 (
> > id int primary key,
> > foo int);

> > testdb=>create table t2 (
> > id int primary key,
> > ref int references t1(id) on update restrict);

> So an attempt to
>
> UPDATE t1 SET id = 2 WHERE id = 1;
>
> is the thing prevented in your above example.

I find it odd that you specify a restiction on one table in the definition of
another table.

Sorry, if this was a double post.

Alan Gutierrez

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bill 2001-08-14 11:24:44 DateDiff, IsNull?
Previous Message Alan Gutierrez 2001-08-14 06:51:33 Re: DateDiff, IsNull?