Re: Fake table name?

From: "Roderick A(dot) Anderson" <raanders(at)altoplanos(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "PostgreSQL::General List" <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: Fake table name?
Date: 2000-10-03 14:24:03
Message-ID: Pine.LNX.4.10.10010030723160.21546-100000@altoplanos.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 3 Oct 2000, Tom Lane wrote:

> "Roderick A. Anderson" <raanders(at)altoplanos(dot)net> writes:
> > select tbl_key, equipname from equipment
> > UNION
> > select 'All', 'All Equipment' from ???
>
> Postgres has a cleaner answer than a fake table; just omit the
> FROM clause:

As I discovered by RTFM.

Thanks for the confirmation.

Rod
--
Roderick A. Anderson
raanders(at)altoplanos(dot)net Altoplanos Information Systems, Inc.
Voice: 208.765.6149 212 S. 11th Street, Suite 5
FAX: 208.664.5299 Coeur d'Alene, ID 83814

In response to

Browse pgsql-general by date

  From Date Subject
Next Message chris markiewicz 2000-10-03 14:25:07 RE: trouble with trigger/function???
Previous Message Nelson Ferreira Jr 2000-10-03 14:18:17 Re: alternative DB locations