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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-interfaces by date

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