RE: Iterations in a SELECT

Поиск
Список
Период
Сортировка
От Helge Bahmann
Тема RE: Iterations in a SELECT
Дата
Msg-id Pine.LNX.4.21.0107180501040.26292-100000@lothlorien.stunet2.tu-freiberg.de
обсуждение исходный текст
Ответ на RE: Iterations in a SELECT  ("Scott Muir" <wsmuir@islandnet.com>)
Список pgsql-novice
On Tue, 17 Jul 2001, Scott Muir wrote:
> Thank you...  Your suggestion is how I am doing it until a better suggestion
> comes along, but without building a dynamic sql statement with many UNION
> statements (read: mess), I can't think of how to build a non-table-driven
> multi-row query result...

depending on the number of values you would like to compare, you can use
something like

    select value from foo where value in (1,2,3,4,5)

have fun,

helge


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

Предыдущее
От: "Scott Muir"
Дата:
Сообщение: RE: Iterations in a SELECT
Следующее
От: "tamsin"
Дата:
Сообщение: RE: Iterations in a SELECT