Re: [HACKERS] column aliases

From: Don Baccus <dhogaza(at)pacifier(dot)com>
To: Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>, "'PostgreSQL-development'" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] column aliases
Date: 2000-01-24 18:56:05
Message-ID: 3.0.1.32.20000124105605.01067ec0@mail.pacifier.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 12:00 PM 1/24/00 +0100, Zeugswetter Andreas SB wrote:

>IMHO, if there exists a from clause, we could insist,
>that all tables are listed (no implicitly added table),
>since it is really too error prone.
>
>What I would not like to see removed is the ability to
>avoid the from clause alltogether. Like in:
>
>select xor.eval;

Yeah...in porting the arsDigita Community System over from
Oracle, we created a dummy table called "dual" because of
the clunky Oracle-ism involving that table.

In other words, in Oracle you can't say:

select sydate();

because you must have a "from" clause. By convention you
use a dummy built-in table called "dual" which has one row:

select sysdate() from dual;

Ugh. I agree that being able to exclude the from clause
altogether is nice.

- Don Baccus, Portland OR <dhogaza(at)pacifier(dot)com>
Nature photos, on-line guides, Pacific Northwest
Rare Bird Alert Service and other goodies at
http://donb.photo.net.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Don Baccus 2000-01-24 19:09:53 Re: [HACKERS] Well, then you keep your darn columns
Previous Message Tom Lane 2000-01-24 18:45:43 Re: [HACKERS] Well, then you keep your darn columns