Re: Quotation marks in queries - Mailing list pgsql-general

From Gregory S. Williamson
Subject Re: Quotation marks in queries
Date
Msg-id 71E37EF6B7DCC1499CEA0316A256832801D4C5FC@loki.wc.globexplorer.net
Whole thread Raw
In response to Quotation marks in queries  ("Martynas Brijunas" <mbrijun@hotmail.com>)
List 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 by date:

Previous
From: merlyn@stonehenge.com (Randal L. Schwartz)
Date:
Subject: Re: To Postgres or not
Next
From: Klint Gore
Date:
Subject: Re: Case insensitive unique constraint