Re: [SQL] SubQueries

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [SQL] SubQueries
Дата
Msg-id 199807140501.BAA15861@candle.pha.pa.us
обсуждение исходный текст
Ответ на SubQueries  (The Web Administrator <wwwadmin@wizard.ca>)
Список pgsql-sql
> Aaaargg.. sub queries aren't implemented?
> Any quick ideas how to get around this ..
> UPDATE table SET time_out='now'
>     WHERE time_in=(SELECT max(time_in) FROM table
>         WHERE
>             account_name='sparky')
>     AND account_name='sparky';

They are implemented in 6.3.2.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

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

Предыдущее
От: The Web Administrator
Дата:
Сообщение: SubQueries
Следующее
От: Holger Mitterwald
Дата:
Сообщение: View to other Tablespace?