test aggregate functions without a dummy table

Поиск
Список
Период
Сортировка
От Willy-Bas Loos
Тема test aggregate functions without a dummy table
Дата
Msg-id 1dd6057e0806200434q2cc34ef3l4394133f9c19bb4e@mail.gmail.com
обсуждение исходный текст
Ответы Re: test aggregate functions without a dummy table  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi,

I want to test the behavior of an an aggregate without creating a dummy table for it.
But the code for it is horrible.
Is there no simpler way?

select max(foo)
from (select 1 as foo union select 2 as foo)bar;

thx

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

Предыдущее
От: Thomas Pundt
Дата:
Сообщение: Re: Need to update all entries of one table based on an earlier backup
Следующее
От: Steve Clark
Дата:
Сообщение: Re: renumber table