Re: Re: Rép. : [GENERAL] double quotes around table and

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Gregory Wood <gregw(at)com-stock(dot)com>
Cc: Erwan DUROSELLE <EDuroselle(at)seafrance(dot)fr>, PostgreSQL-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Re: Rép. : [GENERAL] double quotes around table and
Date: 2002-11-21 22:40:29
Message-ID: Pine.LNX.4.33.0211211539240.23898-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 21 Nov 2002, Gregory Wood wrote:

> > 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
>
> Is that the SQL standard you are referring to? Because I use underscores
> extensively without double-quotes with no problems.

I think he's saying if you use something OTHER than a letter, digit or
underscore you have to quote it, like

create table crazyname&*$#% ...

would fail, but

create table "crazyname&*$#%" ...

would work.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message MT 2002-11-21 22:54:11 sequenc_name.currval not defined
Previous Message Manuel Sugawara 2002-11-21 22:38:13 Re: [SQL] psql on FreeBSD 4.7-RELEASE-p2 and greek (iso8859-7) chars