From: Vassili A Akimov <vassili@erols.com>
To: pgsql-sql@postgresql.org
Subject: Array question
Date: Thu, 13 Apr 2000 13:37:50 -0400
Message-ID: <38F605EE.5FC3A75C@erols.com> (raw)
Hi all!
I, probably, have really simple question, but I can't go further. I
have two tables: one is empty like
+----------------------------------+----------------------------------+-------+
| Field | Type |
Length|
+----------------------------------+----------------------------------+-------+
| home phone number | int4[]
| var |
and another one full like
+----------------------------------+----------------------------------+-------+
| Field | Type |
Length|
+----------------------------------+----------------------------------+-------+
| first | int4
| 4|
| second | int4
| 4|
| third | int4
| 4|
I need to put all elements from second table into a first one. So each
string in
second table becomes a string in a first one, so firts colun becomes a
first
array element in first table second is second and so on. I tried several
queries
in order to do this, but failed. Can anyone help?
Thank you.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: vassili@erols.com
Subject: Re: Array question
In-Reply-To: <38F605EE.5FC3A75C@erols.com>
References: <38F605EE.5FC3A75C@erols.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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