pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Problem with my query whithout double-quotes
3+ messages / 3 participants
[nested] [flat]

* Problem with my query whithout double-quotes
@ 2002-07-24 11:52 ROUWEZ Stephane <stephane.rouwez@ecolo.be>
  2002-07-24 18:24 ` Re: Problem with my query whithout double-quotes Stephan Szabo <sszabo@megazone23.bigpanda.com>
  0 siblings, 1 reply; 3+ messages in thread

From: ROUWEZ Stephane @ 2002-07-24 11:52 UTC (permalink / raw)
  To: pgsql-sql

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 ? 
Thanks 
Stephane



------------------------------ 
http://www.ecolo.be 




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Problem with my query whithout double-quotes
  2002-07-24 11:52 Problem with my query whithout double-quotes ROUWEZ Stephane <stephane.rouwez@ecolo.be>
@ 2002-07-24 18:24 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
  2002-07-29 03:34   ` Re: Problem with my query whithout double-quotes Keith Gray <keith@heart.com.au>
  0 siblings, 1 reply; 3+ messages in thread

From: Stephan Szabo @ 2002-07-24 18:24 UTC (permalink / raw)
  To: ROUWEZ Stephane <stephane.rouwez@ecolo.be>; +Cc: 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).




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Problem with my query whithout double-quotes
  2002-07-24 11:52 Problem with my query whithout double-quotes ROUWEZ Stephane <stephane.rouwez@ecolo.be>
  2002-07-24 18:24 ` Re: Problem with my query whithout double-quotes Stephan Szabo <sszabo@megazone23.bigpanda.com>
@ 2002-07-29 03:34   ` Keith Gray <keith@heart.com.au>
  0 siblings, 0 replies; 3+ messages in thread

From: Keith Gray @ 2002-07-29 03:34 UTC (permalink / raw)
  To: Stephan Szabo <sszabo@megazone23.bigpanda.com>; +Cc: ROUWEZ Stephane <stephane.rouwez@ecolo.be>; 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@heart.com.au




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2002-07-29 03:34 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-07-24 11:52 Problem with my query whithout double-quotes ROUWEZ Stephane <stephane.rouwez@ecolo.be>
2002-07-24 18:24 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2002-07-29 03:34   ` Keith Gray <keith@heart.com.au>

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