其他SQL SELECT语句我有一个遵循以下格式非常大的查询:在请参考别名为表FROM子句
select ...
from (select field1,
field2
from some_table) table1,
(select field1,
field3
from other_table) table2
where .....
是可以让我来指代“定义”中的一个表在from子句中,可以说在from子句中的其他表定义之一中使用table1?
例如:
select ....
from (select field1,
field2
from some_table) table1,
(select table1.field1,
field3
from other_table,
table1) table2
where .....
免责声明:我所试图做的是不是上面的例子一样简单。这个例子只是为了说明这个想法。
这不是你的问题的答案,但你的问题涉及到的一些问题可以通过使用视图解决。 – Brian 2009-04-14 13:01:21