Re: [SQL] INSERT and SELECT

From: neko(at)kredit(dot)sth(dot)szif(dot)hu
To: Nikolay Mijaylov <nmmm(at)nmmm(dot)nu>
Cc: Eric BARROCA <eric(at)netsystems(dot)fr>, pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] INSERT and SELECT
Date: 1999-12-10 17:12:57
Message-ID: Pine.LNX.4.10.9912101808530.4063-100000@kredit.sth.szif.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, 10 Dec 1999, Nikolay Mijaylov wrote:

> As i know PgSQL support subqueryes only in Where part
subquery? ;)
No.
> > 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");"
Try:
=> INSERT INTO table
-- NO values, but
-> SELECT oid FROM membre WHERE ... ;
it may works.

--
nek;(

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message kaiq 1999-12-10 17:23:06 Re: [SQL] INSERT and SELECT
Previous Message Jan Wieck 1999-12-10 16:57:57 Re: [SQL] INSERT and SELECT