Boxes

From: Pierre-Frédéric Caillaud <lists(at)boutiquenumerique(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Boxes
Date: 2004-09-14 12:00:43
Message-ID: opsebfnhsmcq72hf@musicbox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


I have a table containing coordinates and I want to insert these into
another table, converting them to boxes.

I would like to use the same syntax as arrays :

INSERT INTO ... (coords) SELECT ARRAY[a,b,c] FROM ...

But I want boxes. Is there a way to do this ?

SELECT BOX[[a,b],[c,d]] FROM ...
raises a Syntax Error.
And I'd like to avoid to concatenate strings to build a box
representation like
'((1,2),(3,4))'::box;

Is there a way ?

Thanks !

In response to

Responses

  • Re: Boxes at 2004-09-15 18:00:09 from Bruno Wolff III

Browse pgsql-general by date

  From Date Subject
Next Message Raoul Buzziol 2004-09-14 12:01:39 Re: Synchronizing Databases
Previous Message Raoul Buzziol 2004-09-14 11:58:24 Re: Clustering postgresql