Re: [SQL] Alias-Error - Mailing list pgsql-general

From Richard Huxton
Subject Re: [SQL] Alias-Error
Date
Msg-id 200310212002.04344.dev@archonet.com
Whole thread Raw
In response to Re: Alias-Error  (Jost Richstein <jrichstein@softdecc.com>)
List pgsql-general
On Tuesday 21 October 2003 08:17, Jost Richstein wrote:
> Ok. The exact error message is as follows:
>
> SQLException Time      : Mon Oct 20 13:15:25 CEST 2003
> SQLException ErrorCode : 0
> SQLException SQLState  : null
> SQLException Message   : ERROR:  Relation "c2" does not exist
> SQLException Connection: 4878867
>
> The query is something like this:
>
> SELECT DISTINCT C2.cmc_mchap, C2.cmc_sort
>     FROM sis_cmca, sis_cmca C2
>     WHERE cm_status != 'U' AND sis_cmca.cmc_name='INTERN2000' AND
            ^^^^^^^^^
You're missing a table name here. It could be PG is reporting the wrong error.

>           C2.cmc_name='INTERN2000' AND sis_cmca.cmc_mchap=C2.cmc_mchap

--
  Richard Huxton
  Archonet Ltd

pgsql-general by date:

Previous
From: Oksana Yasynska
Date:
Subject: Re: plpgsql: return multiple result sets or temp table
Next
From: Terry Yapt
Date:
Subject: Re: Simple SQL