INSERT and SELECT - Mailing list pgsql-sql

From Eric BARROCA
Subject INSERT and SELECT
Date
Msg-id 87n1riu7bx.fsf@venus.fondation
Whole thread Raw
Responses Re: [SQL] INSERT and SELECT
Re: [SQL] INSERT and SELECT
Re: [SQL] INSERT and SELECT
List pgsql-sql
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>


pgsql-sql by date:

Previous
From: " Date:
Subject: Transactions and functions
Next
From: Stuart Rison
Date:
Subject: Re: [SQL] INSERT and SELECT