pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aasmund Midttun Godal <postgresql@envisity.com>
To: joel@joelburton.com
Cc: josh@agliodbs.com
Cc: pgsql-sql@postgresql.org
Subject: Re: oid's in views.
Date: Sun, 21 Oct 2001 22:12:55 GMT
Message-ID: <20011021221255.1542.qmail@ns.krot.org> (raw)
In-Reply-To: <Pine.LNX.4.30.0110202332180.6433-100000@temp.joelburton.com>
References: <Pine.LNX.4.30.0110202332180.6433-100000@temp.joelburton.com>

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



view thread (13+ messages)  latest in thread

Message-ID: <20011021221255.1542.qmail@ns.krot.org>
Permalink:  ../20011021221255.1542.qmail@ns.krot.org/
Also on:    postgresql.org/message-id/20011021221255.1542.qmail@ns.krot.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: postgresql@envisity.com, joel@joelburton.com, josh@agliodbs.com
  Subject: Re: oid's in views.
  In-Reply-To: <20011021221255.1542.qmail@ns.krot.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox