From: | "Relyea, Mike" <Mike(dot)Relyea(at)xerox(dot)com> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Cc: | "Martynas Brijunas" <mbrijun(at)hotmail(dot)com> |
Subject: | Re: Quotation marks in queries |
Date: | 2005-07-14 12:27:17 |
Message-ID: | 1806D1F73FCB7F439F2C842EE0627B180246D4C6@usa0300ms01.na.xerox.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
You only need to use quotes in your SQL statements if your table names
in PostgreSQL contain any upper case letters. PostgreSQL automatically
converts all of your SQL statements to lower case unless they're quoted.
As an alternative to quoting in VB (assuming you're using Access as your
FE), store your SQL in tables where you can quote it correctly instead
of having to use " & chr(34) & " or """" every time you want to insert a
quote in VB.
Mike
-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Martynas
Brijunas
Sent: Thursday, July 14, 2005 3:32 AM
To: pgsql-general(at)postgresql(dot)org
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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-07-14 12:49:52 | Re: Stopping Postgres |
Previous Message | Solange | 2005-07-14 12:25:08 | PostgreSQL 8.0.3 |