Re: [SQL] INSERT and SELECT

From: <kaiq(at)realtyideas(dot)com>
To: Eric BARROCA <eric(at)netsystems(dot)fr>
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] INSERT and SELECT
Date: 1999-12-10 17:23:06
Message-ID: Pine.LNX.4.10.9912101121150.10905-100000@picasso.realtyideas.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

change the double quotation mark into sigle ones:
email='toto(at)toto(dot)com',
'test'

this is sql92 also, so, it's not pgsql's fault ;-).

On 10 Dec 1999, Eric BARROCA wrote:

> 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(at)toto(dot)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(at)netsystems(dot)fr | Sites Web dynamiques, Commerce lectronique,
> Tel: +33 (0)2 48 21 54 67 | Formations (Unix/Linux, Perl, etc.), Rseaux...
> GSM: +33 (0)6 16 35 33 25 | NetSystems : <http://www.netsystems.fr>
>
> ************
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Mitch Vincent 1999-12-10 21:36:33 Dilema.
Previous Message neko 1999-12-10 17:12:57 Re: [SQL] INSERT and SELECT