pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgreSQL.org>
To: Joseph Shraibman <jks@p1.selectacast.net>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] sql question
Date: Wed, 8 Dec 1999 08:45:31 +0100
Message-ID: <19991208084531.A704@fam-meskes.de> (raw)
In-Reply-To: <384DBF0D.DF9C29AB@selectacast.net>
References: <1B3D5E532D18D311861A00600865478C70BF00@exchange1.nt.maidstone.gov.uk>
	<384DBF0D.DF9C29AB@selectacast.net>

On Tue, Dec 07, 1999 at 09:14:37PM -0500, Joseph Shraibman wrote:
> INSERT INTO application (key, creator, name) values ( 1 ,(select userkey
> from
> user where username = 'b' ), 'newapplication') ;

INSERT INTO application (key, creator, name) SELECT 1, userkey,
'newapplication' from user where username = 'b';

Michael
-- 
Michael Meskes                         | Go SF 49ers!
Th.-Heuss-Str. 61, D-41812 Erkelenz    | Go Rhein Fire!
Tel.: (+49) 2431/72651                 | Use Debian GNU/Linux!
Email: Michael@Fam-Meskes.De           | Use PostgreSQL!



view thread (5+ messages)  latest in thread

Message-ID: <19991208084531.A704@fam-meskes.de>
Permalink:  ../19991208084531.A704@fam-meskes.de/
Also on:    postgresql.org/message-id/19991208084531.A704@fam-meskes.de

 · 

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-interfaces@postgresql.org
  Cc: meskes@postgreSQL.org, jks@p1.selectacast.net
  Subject: Re: [INTERFACES] sql question
  In-Reply-To: <19991208084531.A704@fam-meskes.de>

* 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