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

Michael Meskes wrote:

> 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';
>

owl=> INSERT INTO application (key, creator, name) values (select 1,userkey,
'newapplication'  from user where username = 'b' ) ;
ERROR:  parser: parse error at or near "select"
owl=> INSERT INTO application (key, creator, name) SELECT 1, userkey,
owl-> 'newapplication' from user where username = 'b';
ERROR:  parser: parse error at or near "user"
owl=>

Any other ideas?




view thread (5+ messages)  latest in thread

Message-ID: <384EB339.62C5E2B3@selectacast.net>
Permalink:  ../384EB339.62C5E2B3@selectacast.net/
Also on:    postgresql.org/message-id/384EB339.62C5E2B3@selectacast.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-interfaces@postgresql.org
  Cc: jks@p1.selectacast.net, meskes@postgreSQL.org
  Subject: Re: [INTERFACES] sql question
  In-Reply-To: <384EB339.62C5E2B3@selectacast.net>

* 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