Re: [SQL] INSERT and SELECT - Mailing list pgsql-sql

From neko@kredit.sth.szif.hu
Subject Re: [SQL] INSERT and SELECT
Date
Msg-id Pine.LNX.4.10.9912101808530.4063-100000@kredit.sth.szif.hu
Whole thread Raw
In response to Re: [SQL] INSERT and SELECT  ("Nikolay Mijaylov" <nmmm@nmmm.nu>)
List 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@toto.com"),
> > "test");"
Try:
=> INSERT INTO table -- NO values, but
-> SELECT oid FROM membre WHERE  ... ;
it may works.

--nek;(



pgsql-sql by date:

Previous
From: wieck@debis.com (Jan Wieck)
Date:
Subject: Re: [SQL] INSERT and SELECT
Next
From: "Mitch Vincent"
Date:
Subject: Dilema.