pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Keith Gray <keith@heart.com.au>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: ROUWEZ Stephane <stephane.rouwez@ecolo.be>
Cc: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: Re: Problem with my query whithout double-quotes
Date: Mon, 29 Jul 2002 13:34:46 +1000
Message-ID: <3D44B7D6.1020502@heart.com.au> (raw)
References: <20020724112248.M37882-100000@megazone23.bigpanda.com>

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@heart.com.au




view thread (3+ messages)

Message-ID: <3D44B7D6.1020502@heart.com.au>
Permalink:  ../3D44B7D6.1020502@heart.com.au/
Also on:    postgresql.org/message-id/3D44B7D6.1020502@heart.com.au

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: keith@heart.com.au, sszabo@megazone23.bigpanda.com, stephane.rouwez@ecolo.be
  Subject: Re: Problem with my query whithout double-quotes
  In-Reply-To: <3D44B7D6.1020502@heart.com.au>

* 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