arrays and polygons

Поиск
Список
Период
Сортировка
От David
Тема arrays and polygons
Дата
Msg-id 001e01c3f21b$a8c0eb00$2d650c81@ad.kent.ac.uk
обсуждение исходный текст
Ответы Re: arrays and polygons  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Hi there i am having problems inserting an array of polygons into a table, i
have added the column using:

ALTER TABLE species ADD COLUMN location polygon[];

this works fine, but when i try

INSERT INTO species (location) VALUES ('{((432,89), (45,87), (89,87)),
((54,78), (34,98))};

I get the following error message:

ERROR: Bad polygon external representation '((432'

Where am i going wrong, all help is much appreciated DAvid



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

Предыдущее
От: Tomasz Myrta
Дата:
Сообщение: Re: How to avoid nulls while writing string for dynamic query
Следующее
От: Tomasz Myrta
Дата:
Сообщение: column alias and group by/having/order