X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D8650542E0 for ; Tue, 19 Apr 2005 08:57:43 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 42549-01 for ; Tue, 19 Apr 2005 11:57:41 +0000 (GMT) Received: from mx-00.sil.at (mx-00.sil.at [62.116.68.196]) by svr1.postgresql.org (Postfix) with ESMTP id 589F8542DD for ; Tue, 19 Apr 2005 08:57:37 -0300 (ADT) Received: (qmail-ldap/ctrl 68007 invoked from network); 19 Apr 2005 10:00:03 -0000 Received: from unknown (HELO jupiter.sonorys.at) ([213.235.243.42]) (envelope-sender ) by mx-00.sil.at (qmail-ldap-1.03) with SMTP for ; 19 Apr 2005 10:00:03 -0000 Received: from neptun.sonorys.at (neptun.sonorys.at [172.24.1.17]) by jupiter.sonorys.at (8.11.7+Sun/8.11.7) with ESMTP id j3JA01111397 for ; Tue, 19 Apr 2005 12:00:01 +0200 (MEST) Received: by neptun.sonorys.at with Internet Mail Service (5.5.2653.19) id <2JD5W2WG>; Tue, 19 Apr 2005 12:00:00 +0200 Message-ID: From: =?ISO-8859-1?Q?K=D6PFERL_Robert?= To: pgsql-sql@postgresql.org Subject: Re: Query about SQL in PostgreSQL Date: Tue, 19 Apr 2005 11:59:58 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C544C6.8BC5DA20" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.028 tagged_above=0 required=5 tests=AWL, HTML_40_50, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200504/279 X-Sequence-Number: 21172 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C544C6.8BC5DA20 Content-Type: text/plain; charset="ISO-8859-1" 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 Yahoo! Mail with you! Check email on your mobile phone. ------_=_NextPart_001_01C544C6.8BC5DA20 Content-Type: text/html; charset="ISO-8859-1"
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 Yahoo! Mail with you! Check email on your mobile phone.
------_=_NextPart_001_01C544C6.8BC5DA20--