现在有一条sql语句类似于:select a.code,b.name from a, (
select code,name from c union all (select code,name from d)
) b
where a.code = b.code (+)该sql在AIX系统上的oracle(9.2.0.1)上无法执行成功,总报错:
ORA-00923: FROM keyword not found where expected然而在windows系统上的oracle(版本也是9.2.0.1)上,改sql语句却能正常执行。哪位高手能给指点一下迷津,oracle9i在AIX上遇到的这个问题如何解决?
select code,name from c union all (select code,name from d)
) b
where a.code = b.code (+)该sql在AIX系统上的oracle(9.2.0.1)上无法执行成功,总报错:
ORA-00923: FROM keyword not found where expected然而在windows系统上的oracle(版本也是9.2.0.1)上,改sql语句却能正常执行。哪位高手能给指点一下迷津,oracle9i在AIX上遇到的这个问题如何解决?
解决方案 »
- oracle10g 连接参数dbsm=怎么写啊?!
- 求助:关于left join ,group by 及子查询的效率问题
- weblogic8与oracle10配的连接池取不到连接
- 表空间备份,对数据备份了么?
- 安装oracle时设置的环境变量oracle_home是做什么用的
- 帮帮忙!一个小问题!select unitprice 产品单价 from stnprice; 我想在 产品单价 后面加一个(),请问?
- 问一下如何取得一条记录中最后一个不为空的值
- 求救:TNS服务起不来了。
- cisoc交换机(2950—24)有关VLAN的设置???
- oracle11g 分区表导入失败
- 请教一下大家,这个SQL语句怎么写???
- oracle 对整个库表进行优化的命令是哪个?
select a.code,b.name from a, (
select code,name from c union all select code,name from d
) b
where a.code = b.code (+)
我在AIX 5.2 oracle9.2.0.1测试通过
(select code,name from c) union all (select code,name from d)
) b
where a.code = b.code (+)
加个括号试试?
另外看一下你aix上的数据库有没有坏包,坏视图,很多脚本在windows上发布没有问题,在aix上发布会出现问题的,检查一下你的库吧