pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Klugmann <dklugmann@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: View unique rowid
Date: Wed, 01 Jun 2005 13:53:36 +0000
Message-ID: <BAY104-F738FF8AD0C05D867CF6D5B2050@phx.gbl> (raw)


Hi
Is it possible to refer to a unique row identifier on a view ?

I have the following view but in a subsequent select I need to refer to
each row's unique identifier and I know oid's are not valid for a view.

create view persontransit
as
select personid, planet, name as aspectname, position as planetposition,
position+angle as transitposition
from personplanet, aspect
union
select personid, planet, name as aspectname, position as planetposition,
position-angle as transitposition
from personplanet, aspect
where name != 'OPPOSITION';

Many thanks

David





view thread (4+ messages)  latest in thread

Message-ID: <BAY104-F738FF8AD0C05D867CF6D5B2050@phx.gbl>
Permalink:  ../BAY104-F738FF8AD0C05D867CF6D5B2050@phx.gbl/
Also on:    postgresql.org/message-id/BAY104-F738FF8AD0C05D867CF6D5B2050@phx.gbl

 · 

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: dklugmann@hotmail.com
  Subject: Re: View unique rowid
  In-Reply-To: <BAY104-F738FF8AD0C05D867CF6D5B2050@phx.gbl>

* 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