View unique rowid

From: "David Klugmann" <dklugmann(at)hotmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: View unique rowid
Date: 2005-06-01 13:53:36
Message-ID: BAY104-F738FF8AD0C05D867CF6D5B2050@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Marc Wrubleski 2005-06-01 14:14:31 Returning a Cross Tab record set from a function
Previous Message lucas 2005-06-01 12:27:22 Re: Sum() rows