Rp. : double quotes around table and column names

From: "Erwan DUROSELLE" <EDuroselle(at)seafrance(dot)fr>
To: <tom(at)minnesota(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Rp. : double quotes around table and column names
Date: 2002-11-21 09:40:40
Message-ID: c94905258a0ddb71b4c14d47ea97bb403ddcab38@
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

The standard is that an identifier (table name, field name, ...) must be
double quoted if it contains any non (letter, digits, underscore)
character or if it is case sensitive

See User guide §1.1.1.

Again: use double quoted always or never.
Chose never if you can, eg if you use 'classical' table names

Use quoting if:
- you want to build some very generic tool like an administrator
tool, a report generator...
- if your app has some weird table names you cannot change

So my suggestion is the same as Mike's: avoid double quoting as much as
possible.

Erwan

>>> "Thomas T. Thai" <tom(at)minnesota(dot)com> 11/21 7:09 >>>

What is the suggested way of using double quotes around table and
column
names? Is there a standard or suggested usage?

---------------------------(end of
broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to
majordomo(at)postgresql(dot)org

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Pradier 2002-11-21 09:58:24 Changing the type of a column in an already populated database.
Previous Message Mike Mascari 2002-11-21 08:16:13 Re: double quotes around table and column names