pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Inserting into  point[] type.
2+ messages / 2 participants
[nested] [flat]

* Inserting into  point[] type.
@ 2004-08-12 07:58  Theo Galanakis <Theo.Galanakis@lonelyplanet.com.au>
  0 siblings, 1 reply; 2+ messages in thread

From: Theo Galanakis @ 2004-08-12 07:58 UTC (permalink / raw)
  To: pgsql-sql


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.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Inserting into  point[] type.
@ 2004-08-12 08:27  Markus Bertheau <twanger@bluetwanger.de>
  parent: Theo Galanakis <Theo.Galanakis@lonelyplanet.com.au>
  0 siblings, 0 replies; 2+ messages in thread

From: Markus Bertheau @ 2004-08-12 08:27 UTC (permalink / raw)
  To: Theo Galanakis <Theo.Galanakis@lonelyplanet.com.au>; +Cc: pgsql-sql

В Чтв, 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 <twanger@bluetwanger.de>





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-08-12 08:27 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-08-12 07:58 Inserting into  point[] type. Theo Galanakis <Theo.Galanakis@lonelyplanet.com.au>
2004-08-12 08:27 ` Markus Bertheau <twanger@bluetwanger.de>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox