Re: Need help with a function boolean --> text or array

Поиск
Список
Период
Сортировка
От Vyacheslav Kalinin
Тема Re: Need help with a function boolean --> text or array
Дата
Msg-id 9b1af80e0801222109s596c5c4em7587da71c417dc6@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Need help with a function boolean --> text or array  ("Vyacheslav Kalinin" <vka@mgcp.com>)
Список pgsql-novice
Patch:
  select id, name, rtrim(leading ' ,' from
                          (case when has_olive then 'Olive' else '' end) ||
                          (case when has_cheese then ', Cheese' else '' end) ||
                          (case when has_onion then ', Onion' else '' end) ||
                          (case when has_salami then ', Salami' else '' end) ||
                          (case when has_egg then ', Egg' else '' end) ||
                          (case when has_extra_hot_chilies then ', Extra hot chilies' else '' end)) as addons
    from pizzas;

Doesn't look too fancy though...

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

Предыдущее
От: "Vyacheslav Kalinin"
Дата:
Сообщение: Re: Need help with a function boolean --> text or array
Следующее
От: Raimon Fernandez
Дата:
Сообщение: using column alias to make operations