Re: Problem with my query whithout double-quotes

From: Keith Gray <keith(at)heart(dot)com(dot)au>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: ROUWEZ Stephane <stephane(dot)rouwez(at)ecolo(dot)be>, "'pgsql-sql(at)postgresql(dot)org'" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Problem with my query whithout double-quotes
Date: 2002-07-29 03:34:46
Message-ID: 3D44B7D6.1020502@heart.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Stephan Szabo wrote:

> 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).

Your table names are case sensitive.
PostgreSQL will make them all lowercase by default,
unless you quote them.

--
Keith Gray

Technical Services Manager
Heart Consulting Services P/L
mailto:keith(at)heart(dot)com(dot)au

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2002-07-29 06:11:44 Re: Abbr. for TIMESTAMP WITHOUT TIME ZONE?
Previous Message Josh Berkus 2002-07-28 23:53:07 Abbr. for TIMESTAMP WITHOUT TIME ZONE?