select *
from table1,table2
where (table2.col2 is null or table2.col2='value2')
and table1.col1 > table2.col1(+)不明白 你为什么要用右连接?
from table1,table2
where (table2.col2 is null or table2.col2='value2')
and table1.col1 > table2.col1(+)不明白 你为什么要用右连接?
解决方案 »
- oracle在哪里下载啊
- 删除表中重复的记录,是否三条语句都一样?
- oracle打9208补丁问题
- DECODE 函数的简单问题
- 关于Oracle.那位高手可以帮忙一下。
- 求条sql语句,如何读取一个表中的name字段,是另一张表中的字段name中没有的
- oracle里面能否识别001|002|003|.....这种类型呢?
- SQL SERVER中的ISNULL函数在ORacle中对应的函数是什么?
- ★☆★☆★ 400分求一段可执行的,使用blob或者clob的sql语句★☆★☆★
- 继penitent,bzszp步步高升,再次祝贺黄山转换新工作,公喜!
- 关于ORA-01536的问题,急!
- 基础问题,大虾帮忙!
from table1,table2
where table2.col2='value2'
and table1.col1 > table2.col1(+)这个语句执行并没有错误啊,返回0条数据楼主你的错误是什么?或者说你想返回什么样的数据?
试试看吧:select decode(t2.col2,'value2',t2.col1,t2.col2),.....其他字段
from table1 t1,table2 t2
where table1.col1 > table2.col1(+)
(table2.col2='value2')???