From: Sferacarta Software <sferac@bo.nettuno.it>
To: PostgreSQL SQL Mailing List <pgsql-sql@hub.org>
To: Gemeinschaft Studienarbeit Datenbanken <oodbms@floppy.org>
Subject: Re: [SQL] Another nut to crack with insertion into tables... *sigh*
Date: Mon, 28 Sep 1998 15:35:27 +0200
Message-ID: <7649.980928@bo.nettuno.it> (raw)
References: <199809272146.1239275.6@onyx>
Hello Gemeinschaft,
domenica, 27 settembre 98, you wrote:
GSD> insert into Rollenspiel
GSD> (Name, HerstellerID, Erscheinungsdatum,
GSD> Bestellnummer, Preisempfehlung,
GSD> Beschreibung,
GSD> Computertyp, Datentraegertyp,
GSD> System, AnzahlCharaktere, Typ,
GSD> Cluebook, SpielstandEditor)
GSD> values
GSD> ('Might & Magic I', (select HerstellerNummer from Hersteller
GSD> where Name like '%Blueborg%'), '17.03.1986',
GSD> 'role01', '29,50',
GSD> '{"Einfach irgendeine Beschreibung halt..."}',
GSD> '{"PC", "Mac", "c64", "Atari"}', '{"Diskette", "CD"}',
GSD> 'Freies System', 6, 'Fantasy',
GSD> '{"Solution to Might & Magic Series", "The Might & Magic I Solution"}',
GSD> '{"http://www.mightandmagic.de/I/editors.html";}');
GSD> ERROR: parser: parse error at or near "select"
GSD> The question is: why?
Actually, you can't assign the result of a subquery to a column,
This is a TODO item:
* Allow subqueries in target list
Jose'
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: sferac@bo.nettuno.it, pgsql-sql@hub.org, oodbms@floppy.org
Subject: Re: [SQL] Another nut to crack with insertion into tables... *sigh*
In-Reply-To: <7649.980928@bo.nettuno.it>
References: <199809272146.1239275.6@onyx> <7649.980928@bo.nettuno.it>
* 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