| От | Bruno Wolff III |
|---|---|
| Тема | Re: UNION and array types |
| Дата | |
| Msg-id | 20021122215025.GA21740@wolff.to обсуждение исходный текст |
| Ответ на | UNION and array types (Eric B.Ridge <ebr@tcdi.com>) |
| Ответы |
Re: UNION and array types
|
| Список | pgsql-general |
On Fri, Nov 22, 2002 at 16:29:07 -0500,
"Eric B. Ridge" <ebr@tcdi.com> wrote:
> UNIONs don't appear to work when you are trying to union 2 tables that
> include array types.
> Example:
> create table foo (bar int8[]);
> insert into foo (bar) values ('{1,2,3}');
> select * from foo union select * from foo;
> ERROR: Unable to identify an ordering operator '<' for type 'bigint[]'
> Use an explicit ordering operator or modify the query
>
> Is it possible to make this work? Please tell me yes. :)
I think you can get by with union all if you don't care if duplicates stay.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера