Inserting into point[] type.

Поиск
Список
Период
Сортировка
Искать

Inserting into point[] type.

От:
Theo Galanakis <Theo.Galanakis@lonelyplanet.com.au>
Дата:

How do you insert into a column of type point[]

Sample table:
CREATE TABLE public.test
(
  Column_a varchar(1000),
  Column_b point[]
) WITHOUT OIDS;

I have tried without success:

insert into test (Column_a, Column_b) values ('Aargau','{47.3899993896,8.03400039673}')

Theo

______________________________________________________________________
This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright. If you
have received this email in error, please advise the sender and delete
it. If you are not the intended recipient of this email, you must not
use, copy or disclose its content to anyone. You must not copy or
communicate to others content that is confidential or subject to
copyright, unless you have the consent of the content owner.

Re: Inserting into point[] type.

От:
Markus Bertheau <twanger@bluetwanger.de>
Дата:
В Чтв, 12.08.2004, в 09:58, Theo Galanakis пишет:
> How do you insert into a column of type point[] 

> I have tried without success:
> 
> insert into test (Column_a, Column_b) values
> ('Aargau','{47.3899993896,8.03400039673}')

I'd guess '{(3.3, 4.4), (1.0, 4.3)}' or ARRAY[(3.3, 4.4), (1.0, 4.3)].
Maybe even something like '{''(3.3, 4.4)'', ''(1.0, 4.3)''}'

-- 
Markus Bertheau 



FAQ