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 489865338A for ; Tue, 19 Apr 2005 09:54:56 -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 63818-07 for ; Tue, 19 Apr 2005 12:54:51 +0000 (GMT) Received: from svr2.postgresql.org (svr2.postgresql.org [65.19.161.25]) by svr1.postgresql.org (Postfix) with ESMTP id 83B8353BAB for ; Tue, 19 Apr 2005 08:16:11 -0300 (ADT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr2.postgresql.org (Postfix) with ESMTP id 7E373F122D for ; Tue, 19 Apr 2005 11:57:15 +0100 (BST) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 440CC433770; Tue, 19 Apr 2005 11:58:23 +0100 (BST) Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id EC2AF16903; Tue, 19 Apr 2005 11:58:29 +0100 (BST) Message-ID: <4264E455.8040406@archonet.com> Date: Tue, 19 Apr 2005 11:58:29 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Muhammad Nadeem Ashraf Cc: pgsql-sql@postgresql.org Subject: Re: Query about SQL in PostgreSQL References: <20050419094846.21474.qmail@web50506.mail.yahoo.com> In-Reply-To: <20050419094846.21474.qmail@web50506.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200504/283 X-Sequence-Number: 21176 Muhammad Nadeem Ashraf wrote: > 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. If you quote your table-names when you create them you should always quote them when you use them. If you don't quote your table-names when you create them, there is no need to quote them when you use them. -- Richard Huxton Archonet Ltd