Re: Problem with my query whithout double-quotes

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: ROUWEZ Stephane <stephane(dot)rouwez(at)ecolo(dot)be>
Cc: "'pgsql-sql(at)postgresql(dot)org'" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Problem with my query whithout double-quotes
Date: 2002-07-24 18:24:12
Message-ID: 20020724112248.M37882-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, 24 Jul 2002, ROUWEZ Stephane wrote:

> Hi,
> My pgsql runs on WinNT Server 4. When I try to
> SELECT nom, prenom FROM individu WHERE numero=2
> I have : ERROR: Relation "individu" does not exist
> It only works if I write :
> SELECT "Individu"."Nom","Individu"."Prenom" FROM "Individu" WHERE
> "Individu"."NumIndiv"=2
> Can someone help me ?

It looks like you created the table with double quotes around the
names at which point you should always use double quotes to refer
to it (yes, if the name was "foo" you *can* refer to it as foo, but
you really shouldn't).

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2002-07-24 18:26:27 Re: Trying to write a function...
Previous Message Tom Lane 2002-07-24 18:20:40 Re: RES: RES: [SQL] Queries not using Index