Skip site navigation (1) Skip section navigation (2)

Re: [INTERFACES] sql question

From: Michael Meskes <meskes(at)postgreSQL(dot)org>
To: Joseph Shraibman <jks(at)p1(dot)selectacast(dot)net>
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] sql question
Date: 1999-12-08 07:45:31
Message-ID: 19991208084531.A704@fam-meskes.de (view raw or flat)
Thread:
Lists: pgsql-interfaces
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(at)Fam-Meskes(dot)De           | Use PostgreSQL!

In response to

Responses

pgsql-interfaces by date

Next:From: Christian HangDate: 1999-12-08 08:47:05
Subject: Re: ODBC and Large Objects, FAQ not working
Previous:From: Peter MountDate: 1999-12-08 07:26:29
Subject: RE: [INTERFACES] Transaction support in 6.5.3/JDBC

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group