Re: Quotation marks in queries

Поиск
Список
Период
Сортировка
От Gregory S. Williamson
Тема Re: Quotation marks in queries
Дата
Msg-id 71E37EF6B7DCC1499CEA0316A256832801D4C5FC@loki.wc.globexplorer.net
обсуждение исходный текст
Ответ на Quotation marks in queries  ("Martynas Brijunas" <mbrijun@hotmail.com>)
Список pgsql-general
This is only really necessary if the table or column names are mixed cases or include spaces or some such ... normally
(?)this is not required. PostgreSQL relentlessly lower cases such names unless they are double quoted. 

HTH,

Greg Williamson
DBA
GlobeXplorer LLC

-----Original Message-----
From:    pgsql-general-owner@postgresql.org on behalf of Martynas Brijunas
Sent:    Thu 7/14/2005 12:31 AM
To:    pgsql-general@postgresql.org
Cc:
Subject:    [GENERAL] Quotation marks in queries
Hello,

I am a total newbie to PostgreSql, coming from MS Access background. I have
a question regarding queries in PostgreSql: why do I need to enclose every
field name and table name in quotation marks like

SELECT "Name" From "contacts"

That is a major inconvenience when composing a query string in a VB program.
Thank you.



---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@postgresql.org so that your
       message can get through to the mailing list cleanly

!DSPAM:42d6173839122069320068!





В списке pgsql-general по дате отправления:

Предыдущее
От: merlyn@stonehenge.com (Randal L. Schwartz)
Дата:
Сообщение: Re: To Postgres or not
Следующее
От: Klint Gore
Дата:
Сообщение: Re: Case insensitive unique constraint