Can I getting a unique ID from a select

Поиск
Список
Период
Сортировка
От Timasmith
Тема Can I getting a unique ID from a select
Дата
Msg-id 1172758562.246401.3010@j27g2000cwj.googlegroups.com
обсуждение исходный текст
Ответы Re: Can I getting a unique ID from a select  (Bill Moran <wmoran@collaborativefusion.com>)
Re: Can I getting a unique ID from a select  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-general
I am using hibernate, using a view like a read only table and I need a
primary key each time a select is issued.

So in Oracle terms this might work, though I am skeptical that
Hibernate is going to return a cached result.

create view myview as
select rownum, t1.field, t2.field
from tableOne t1, tableTwo t2
where t1.key = t2.fkey

select * from myview

But what I really need is

select makemeauniquekey, t1.field, t2.field
...

Maybe there is no way I think...  incrementing a sequence per select
is untenable.


В списке pgsql-general по дате отправления:

Предыдущее
От: Shiva Sarna
Дата:
Сообщение: supporting 2000 simultaneous connections.
Следующее
От: Brent Wood
Дата:
Сообщение: Re: General Ledger db design