Inserting into point[] type.

Inserting into point[] type.

am 12.08.2004 09:58:35 von Theo.Galanakis

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C48042.2B0F33F0
Content-Type: text/plain


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.
------_=_NextPart_001_01C48042.2B0F33F0
Content-Type: text/html






Inserting into point[] type.



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.

------_=_NextPart_001_01C48042.2B0F33F0--

Re: Inserting into point[] type.

am 12.08.2004 10:27:28 von twanger

В Чтв, 12.08.2004, в 09:58, Theo Galanakis п=
ишет:
> How do you insert into a column of type point[]=20

> I have tried without success:
>=20
> 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)''}'

--=20
Markus Bertheau



---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org