From: Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Populating using Select
Date: Tue, 26 Sep 2006 09:35:18 -0300
Message-ID: <55c095e90609260535r1951013ep15ec0d5a89c8a78a@mail.gmail.com> (raw)
Hi list,
I need to populate a neigborhood table base on a select of another table
that already have a good amount of neigborhood saved.
Could someone tell me how it is possible ?
I was trying to make something like this:
Insert into base.neigborhood values (nextval(), Select distinct name from
base.clients).
I didn't try it but I suppose it will not work.
Regards ...
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Atenciosamente (Sincerely)
Ezequias Rodrigues da Rocha
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
A pior das democracias ainda é melhor do que a melhor das ditaduras
The worst of democracies is still better than the better of dictatorships
http://ezequiasrocha.blogspot.com/
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: ezequias.rocha@gmail.com
Subject: Re: Populating using Select
In-Reply-To: <55c095e90609260535r1951013ep15ec0d5a89c8a78a@mail.gmail.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