Unique keys on views

Поиск
Список
Период
Сортировка
Искать

Unique keys on views

От:
<dklugmann@kerenor.co.uk>
Дата:

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

FAQ