From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Josh Berkus <josh(at)agliodbs(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: SQL feature requests |
Date: | 2007-08-23 20:01:08 |
Message-ID: | 11856.1187899268@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Josh Berkus <josh(at)agliodbs(dot)com> writes:
> I still don't see it as terrifically useful functionality, given that it's
> just saving you 4 keystrokes ...
Less than that, because the AS is optional. The only argument I've
heard that carries much weight with me is that it eases porting from
other DBMS's that allow this. Are there any others besides Oracle?
In a quick check, mysql 5.0.45 hews to the straight and narrow path:
mysql> create table t(f1 int);
Query OK, 0 rows affected (0.01 sec)
mysql> select * from (select f1 from t) x;
Empty set (0.00 sec)
mysql> select * from (select f1 from t) ;
ERROR 1248 (42000): Every derived table must have its own alias
mysql>
so you don't get to point to them as one that we'd improve
compatibility with.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2007-08-23 20:05:42 | Re: SQL feature requests |
Previous Message | Alvaro Herrera | 2007-08-23 19:50:37 | Re: SQL feature requests |