select 字段1,字段2,字段3
from (select * from tab1 where 条件1) t1,tab2 t2
left join tab3 t3 on t2.列1=t3.列1
where 条件2以上这段是可以执行的,但是换了(select * from tab1 where 条件1) t1与tab2 t2的位置
如下:
select 字段1,字段2,字段3
from tab2 t2, (select * from tab1 where 条件1) t1
left join tab3 t3 on t2.列1=t3.列1
where 条件2就会报错:ORA-00904
本人新手求各位大侠指点迷津
from (select * from tab1 where 条件1) t1,tab2 t2
left join tab3 t3 on t2.列1=t3.列1
where 条件2以上这段是可以执行的,但是换了(select * from tab1 where 条件1) t1与tab2 t2的位置
如下:
select 字段1,字段2,字段3
from tab2 t2, (select * from tab1 where 条件1) t1
left join tab3 t3 on t2.列1=t3.列1
where 条件2就会报错:ORA-00904
本人新手求各位大侠指点迷津
解决方案 »
- 参数赋值问题 oracle
- 我有急事----我的TOAD出大毛病了
- 用to_char方式查找日期为指定年月的数据,用时2秒多,有没有快点的方法
- 求:查看数据库的结构的语句。
- 急问!关于三个表关联,但是有一个字段需要做sum。结果不对
- 大侠帮我看看修改列名的问题
- 各位大虾,explain plan 怎么用?(初学者问题)
- 这样的外键约束用SQL语句如何表示
- Oracle Change Notification 延时严重怎么解决?
- 请教各位大神一个sql面试题,关于where子查询的,我看不懂啊,求教!!
- 未开启归档日志,但是oracle却产生了大量日志,什么原因?
- oracle关于连接奇怪的问题
《(select * from tab1 where 条件1) t1 left join tab3 t3 on t2.列1=t3.列1》 on 后面带的是t2 而不是t1 所以报错