Re: Arrays - selecting (and not removing) duplicates...

Поиск
Список
Период
Сортировка
От Pól Ua Laoínecháin
Тема Re: Arrays - selecting (and not removing) duplicates...
Дата
Msg-id CAF4RT5T-1UipFOv2MQ_hP=2mzFEcTa=2xrWD4LrjrQCi99GLuw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Arrays - selecting (and not removing) duplicates...  (Pól Ua Laoínecháin <linehanp@tcd.ie>)
Список pgsql-general
Hi all and apologies for the simple question!

> I want to "feed" the result of a query into your function - is there
> something special I have to do for this?

SELECT
  ARRAY_DUPS
  (
    (
      SELECT ARRAY[1,3,4,1, 5,6,5, 67]
    )
  ) AS t;

answer:

t
{1,5}


And I can also feed in queries. A second set of braces (round
brackets) is needed!

Thanks again and rgs,


Pól...

> Pól...



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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Pg stuck at 100% cpu, for multiple days
Следующее
От: hubert depesz lubaczewski
Дата:
Сообщение: Pg stuck at 100% cpu, for multiple days