Re: Quotation marks in queries

From: "Gregory S(dot) Williamson" <gsw(at)globexplorer(dot)com>
To: "Martynas Brijunas" <mbrijun(at)hotmail(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Quotation marks in queries
Date: 2005-07-14 07:50:54
Message-ID: 71E37EF6B7DCC1499CEA0316A256832801D4C5FC@loki.wc.globexplorer.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)postgresql(dot)org on behalf of Martynas Brijunas
Sent: Thu 7/14/2005 12:31 AM
To: pgsql-general(at)postgresql(dot)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(at)postgresql(dot)org so that your
message can get through to the mailing list cleanly

!DSPAM:42d6173839122069320068!

Browse pgsql-general by date

  From Date Subject
Next Message Roman Neuhauser 2005-07-14 08:03:31 Re: Case insensitive unique constraint
Previous Message Randal L. Schwartz 2005-07-14 07:49:36 Re: To Postgres or not