pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: KÖPFERL Robert <robert.koepferl@sonorys.at>
To: pgsql-sql@postgresql.org
Subject: Re: Query about SQL in PostgreSQL
Date: Tue, 19 Apr 2005 11:59:58 +0200
Message-ID: <ED4E30DD9C43D5118DFB00508BBBA76EB166BE@neptun.sonorys.at> (raw)

Postgres has the weird behavour to compare identifies case sensitive BUT to
downcast any non-quoted identifier inside an SQL statement. 
So it is reccomended to just use lower case (for readability) 

-----Original Message-----
From: Muhammad Nadeem Ashraf [mailto:nadeem_engg@yahoo.com]
Sent: Dienstag, 19. April 2005 11:49
To: pgsql-sql@postgresql.org
Subject: [SQL] Query about SQL in PostgreSQL


Hi,
I am new user of PostGreSQL 8.0.1. While using it i faced following issue.
As SQL is Case insensetive Language So the Uper or Lower cases are not
significant. But while using the database there is problem.
If i Create new Table with name (tblstudent) then upon SQL queries it is
fine to use Select * from tblstudent. However i face probel if i give the
name of table in Capital letters i.e. if the name is (tblStudent) then upon
using Select * from tblStudent, following error is appeard:
ERROR:  relation "tblst" does not exist 
 
And if i use the query Select * from "tblStudent" then it works fine.
 
 
Please help me out in this regard.
Nadeem
 



  _____  

Yahoo! Mail Mobile
Take
<http://us.rd.yahoo.com/mail_us/taglines/mobile/*http://mobile.yahoo.com/lea
rn/mail> Yahoo! Mail with you! Check email on your mobile phone.

view thread (9+ messages)  latest in thread

Message-ID: <ED4E30DD9C43D5118DFB00508BBBA76EB166BE@neptun.sonorys.at>
Permalink:  ../ED4E30DD9C43D5118DFB00508BBBA76EB166BE@neptun.sonorys.at/
Also on:    postgresql.org/message-id/ED4E30DD9C43D5118DFB00508BBBA76EB166BE@neptun.sonorys.at

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: robert.koepferl@sonorys.at
  Subject: Re: Query about SQL in PostgreSQL
  In-Reply-To: <ED4E30DD9C43D5118DFB00508BBBA76EB166BE@neptun.sonorys.at>
  References: <ED4E30DD9C43D5118DFB00508BBBA76EB166BE@neptun.sonorys.at>

* 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