Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 6BB0D9FB639 for ; Fri, 9 Mar 2007 10:17:54 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 61332-02 for ; Fri, 9 Mar 2007 10:17:44 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id 13FCD9FB652 for ; Fri, 9 Mar 2007 10:17:50 -0400 (AST) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1HPfnI-00077W-4V for pgsql-sql@postgresql.org; Fri, 09 Mar 2007 15:10:04 +0100 Received: from pirus.securax.be ([213.16.46.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Mar 2007 15:10:04 +0100 Received: from milen by pirus.securax.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Mar 2007 15:10:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-sql@postgresql.org From: "Milen A. Radev" Subject: Re: CREATE TABLE Date: Fri, 09 Mar 2007 16:05:41 +0200 Lines: 22 Message-ID: References: <00ed01c76252$b0bc28b0$1102a8c0@dream> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pirus.securax.be User-Agent: Thunderbird 2.0b2 (Windows/20070116) In-Reply-To: <00ed01c76252$b0bc28b0$1102a8c0@dream> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.014 tagged_above=0 required=5 tests=AWL, BAYES_05, RCVD_IN_SORBS_WEB, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200703/106 X-Sequence-Number: 27744 Shavonne Marietta Wijesinghe wrote: > Hello > > From my asp page i create a table > > TableName = "CON01" > strSQL = "CREATE TABLE " & TableName & " ( ID text, N_GEN serial not null);" > > But the problem i have is that when i go and open my database in pgadmin the table name and coloumn name is written in lowercase :( > > How do i ask it to write them in uppercase (like in my strSQL) ? > You should quote the name. Please read more about it here - http://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS Excerpt: "Quoting an identifier also makes it case-sensitive, whereas unquoted names are always folded to lower case." -- Milen A. Radev