Re: oid's in views. - Mailing list pgsql-sql

From Aasmund Midttun Godal
Subject Re: oid's in views.
Date
Msg-id 20011021221255.1542.qmail@ns.krot.org
Whole thread Raw
In response to oid's in views.  ("Aasmund Midttun Godal" <postgresql@envisity.com>)
Responses Re: oid's in views.  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
That is what i did...

Regards,

Aasmund

On Sat, 20 Oct 2001 23:34:44 -0400 (EDT), Joel Burton <joel@joelburton.com> wrote:
> On Sun, 21 Oct 2001, Aasmund Midttun Godal wrote:
> 
> 
> 
> Aasmund --
> 
> If your problem is that you want to update VIEWs and aren't sure what the
> PK for the view is, could you follow a standard like this:
> 
> CREATE TABLE person (social_security CHAR(9), full_name TEXT);
> 
> CREATE VIEW pers_view AS select social_security AS primkey,
>                                 social_security,
>                                 full_name);
> 
> and know that you can always find the "primkey" field in the view as one
> to use in where clauses for updates?
> 
> HTH,
> -- 
> 
> Joel BURTON  |  joel@joelburton.com  |  joelburton.com  |  aim: wjoelburton
> Independent Knowledge Management Consultant
> 

Aasmund Midttun Godal

aasmund@godal.com - http://www.godal.com/
+47 40 45 20 46


pgsql-sql by date:

Previous
From: "Aasmund Midttun Godal"
Date:
Subject: Re: CREATE RULE ON UPDATE/DELETE
Next
From: Stephan Szabo
Date:
Subject: Re: CREATE RULE ON UPDATE/DELETE