agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Justin Georgeson <jgeorgeson@lopht.net>
To: pgsql-sql@postgresql.org
Subject: select for update
Date: Wed, 20 Nov 2002 23:20:19 -0600
Message-ID: <3DDC6D13.8040404@lopht.net> (raw)
I'm pretty new to databases in general, and would like to find a spiffy
way to do something. I want to use two columns from one table to
populate three columns in two other tables. Assuming t1 is the table I
want to take the values from, here is the structure of what I want to
insert into t2 and t3.
t2.id = t1.id
t2.groupname = t1.username
t2.owner = t1.username
t3.id = <next available>
t3.groupid = t1.id
t3.username = t1.username
t3.writeperms = 31
PS - I'm not subscribed to the list, so please CC my email with responses.
--
; Justin Georgeson
; http://www.lopht.net
; mailto:jgeorgeson@lopht.net
; "Free the mallocs, delete the news"
view thread (17+ messages) latest in thread
Message-ID: <3DDC6D13.8040404@lopht.net>
Permalink: ../3DDC6D13.8040404@lopht.net/
Also on: postgresql.org/message-id/3DDC6D13.8040404@lopht.net
reply
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: jgeorgeson@lopht.net
Subject: Re: select for update
In-Reply-To: <3DDC6D13.8040404@lopht.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox