pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eric BARROCA <eric@netsystems.fr>
To: pgsql-sql@postgresql.org
Subject: INSERT and SELECT
Date: 10 Dec 1999 16:46:42 +0100
Message-ID: <87n1riu7bx.fsf@venus.fondation> (raw)

Hi,

I've tried this query with PostgreSQL, but it doesn't work. Could anyone
explain me why and what must I do to get the same result ?
Query example : "INSERT INTO table VALUES (
			(SELECT oid FROM membre WHERE email="toto@toto.com"),
			"test");"
I get the error : "parse error near select".

I've been searched in the manual and with deja.com but I haven't found
something about this.
This query works with mysql (and it's the only one query that works with
this RDBMS ;-)


Thanks,

Éric.

-- 
Éric BARROCA               | Logiciels Libres, Conception Intranet/Extranet,
E-Mail: eric@netsystems.fr | Sites Web dynamiques, Commerce électronique,
Tel: +33 (0)2 48 21 54 67  | Formations (Unix/Linux, Perl, etc.), Réseaux... 
GSM: +33 (0)6 16 35 33 25  | NetSystems : <http://www.netsystems.fr;



view thread (9+ messages)  latest in thread

Message-ID: <87n1riu7bx.fsf@venus.fondation>
Permalink:  ../87n1riu7bx.fsf@venus.fondation/
Also on:    postgresql.org/message-id/87n1riu7bx.fsf@venus.fondation

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: eric@netsystems.fr
  Subject: Re: INSERT and SELECT
  In-Reply-To: <87n1riu7bx.fsf@venus.fondation>
  References: <87n1riu7bx.fsf@venus.fondation>

* 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