Re: CREATE TABLE - Mailing list pgsql-sql

From Milen A. Radev
Subject Re: CREATE TABLE
Date
Msg-id esrpjm$jnv$2@sea.gmane.org
Whole thread Raw
In response to CREATE TABLE  ("Shavonne Marietta Wijesinghe" <shavonne.marietta@studioform.it>)
List pgsql-sql
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
inlowercase :( 
 
> 
> 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



pgsql-sql by date:

Previous
From: "Shavonne Marietta Wijesinghe"
Date:
Subject: Fw: CREATE TABLE
Next
From: Andrew Sullivan
Date:
Subject: Re: CREATE TABLE