From: Patrik Kudo <kudo@partitur.se>
To: pgsql-sql@postgresql.org
Subject: "quoting" column names
Date: Tue, 13 Jul 1999 14:15:40 +0200
Message-ID: <378B2DEC.84B1514A@partitur.se> (raw)
Hi
I've been using Postgres for... well, as long as I can remember ;)
And aparently I've been using a column name wich is "almost reserved"
(i.e. cannot be used as identifer). Since upgrading to 6.5 I nolonger
can access these fields the way I've always done them. This what I've
been doing:
create table login (userid text, when datetime);
select when from login where userid = 'xxxx';
In 6.5 I have to do:
select "when" from login where userid = 'xxxx';
My question now is, should I always quote column names, just in case,
or should I only quote column names that are "almost reserved"?
/Kudo
--
ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Känns det oklart? Fråga på!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: kudo@partitur.se
Subject: Re: "quoting" column names
In-Reply-To: <378B2DEC.84B1514A@partitur.se>
References: <378B2DEC.84B1514A@partitur.se>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox