Re: CREATE TABLE

Поиск
Список
Период
Сортировка
От Milen A. Radev
Тема Re: CREATE TABLE
Дата
Msg-id esrpjm$jnv$2@sea.gmane.org
обсуждение исходный текст
Ответ на CREATE TABLE  ("Shavonne Marietta Wijesinghe" <shavonne.marietta@studioform.it>)
Список 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 по дате отправления:

Предыдущее
От: "Shavonne Marietta Wijesinghe"
Дата:
Сообщение: Fw: CREATE TABLE
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: CREATE TABLE