From: Ray O'Donnell <ray@rodonnell.ie>
To: stan <stanb@panix.com>
To: PostgreSQL <pgsql-general@postgresql.org>
Subject: Re: SELECT returnig a constant
Date: Tue, 15 Oct 2019 17:15:00 +0100
Message-ID: <bf419783-8315-95cd-9ea1-504e2de50510@rodonnell.ie> (raw)
In-Reply-To: <20191015140108.GA6107@panix.com>
References: <20191015132851.GA6232@panix.com>
<1071f28a-c7a8-1b51-cd88-803a331158aa@rodonnell.ie>
<20191015140108.GA6107@panix.com>
On 15/10/2019 15:01, stan wrote:
> Thanks, as you can see from my SOLVED reply, I go that part figured out.
> Now I am trying to figure out how to complete this. The SELECT returns more
> than 1 row, and when I put that in the VALUES clause this does not work.
Please reply to the list, rather than to me - reply-all should do the
trick. :-)
You're using cross-joins, which returns the cartesian product of the
tables concerned, without any WHERE clause.... so if the tables are big
you'll return a LOT of data.
Ray.
--
Raymond O'Donnell // Galway // Ireland
ray@rodonnell.ie
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-general@postgresql.org
Cc: ray@rodonnell.ie, stanb@panix.com
Subject: Re: SELECT returnig a constant
In-Reply-To: <bf419783-8315-95cd-9ea1-504e2de50510@rodonnell.ie>
References: <20191015132851.GA6232@panix.com> <1071f28a-c7a8-1b51-cd88-803a331158aa@rodonnell.ie> <20191015140108.GA6107@panix.com> <bf419783-8315-95cd-9ea1-504e2de50510@rodonnell.ie>
* 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