Re: Can I getting a unique ID from a select

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Can I getting a unique ID from a select
Дата
Msg-id 20070304001219.GA19667@wolff.to
обсуждение исходный текст
Ответ на Can I getting a unique ID from a select  ("Timasmith" <timasmith@hotmail.com>)
Ответы Re: Can I getting a unique ID from a select  (Bruno Wolff III <bruno@wolff.to>)
Re: Can I getting a unique ID from a select  ("Timasmith" <timasmith@hotmail.com>)
Список pgsql-general
On Thu, Mar 01, 2007 at 06:16:02 -0800,
  Timasmith <timasmith@hotmail.com> wrote:
> I am using hibernate, using a view like a read only table and I need a
> primary key each time a select is issued.
>
> 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
> ...

Is there some reason you can't use the join key?

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

Предыдущее
От: Shane Ambler
Дата:
Сообщение: Re: How Can I set a non standard date format?
Следующее
От: Jim Rosenberg
Дата:
Сообщение: Configure can't find com_err on OpenBSD for --with-krb5