From: James Olin Oden <joden@lee.k12.nc.us>
To: pgsql-sql@postgreSQL.org
Subject: can a column be aliased?
Date: Mon, 3 Aug 1998 12:04:04 -0400
Message-ID: <81Aug2.105331edt.35713@gateway.lee.k12.nc.us> (raw)
I know this is probably a strange question, but can you give a column
name an alias? The reason I ask is because I have recently realized I
could use the oid to generate a unique key value for my tables, but I
don't like that idea, because it does not give a very readable (and I
assume portable) way of accessing the key value for the table. So I was
thinking if I could "alias" the name of the oid field in a particular to
something more palatable, then I would at least get around the
readability problem. Is this doable with SQL (or with PostgreSQL for
that matter)?
...james
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: joden@lee.k12.nc.us
Subject: Re: can a column be aliased?
In-Reply-To: <81Aug2.105331edt.35713@gateway.lee.k12.nc.us>
References: <81Aug2.105331edt.35713@gateway.lee.k12.nc.us>
* 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