select t1.id,name,nvl(value1,0),nvl(value2,0),nvl(value3,0)
from t1,t2,t3,t4
where t1.id=t2.id(+)
and t1.id=t3.id(+)
and t1.id=t4.id(+)
from t1,t2,t3,t4
where t1.id=t2.id(+)
and t1.id=t3.id(+)
and t1.id=t4.id(+)
解决方案 »
- 在plsql执行有结果的语句,到了程序中得到的值一直是NULL
- PowerCenter 客户端有没web service 组件,求指点
- 求sql语句将数据库表某些字段的内容翻10倍
- insert into tbl_1 select * from tbl_2的问题
- 数据库迁移,同sql执行计划却不同(在线等)
- 帮忙解决一个SQL问题??????
- oracle 数据表中如何对具有blob字段的数据表导入导出?
- 各位大侠,请教“未指定错误”怎么解决????急。
- 行行好,教教我吧
- 各位大虾,哪位有Oracle9i的学习资料,高分酬谢!
- 有没有办法。解决这样的查询
- 想写一个带参数的存储过程来读取数据,长时间没有写了忘记了
from t1,t2,t3,t4
where t1.id=t2.id(+)
and t1.id=t3.id(+)
and t1.id=t4.id(+);这里用到了左联接,即左边的表是主表,(+)号放在副表的后面,无加号的代表主表,在查询时主表中的数据记录全部都显示出来的,无论副表中有没有。nvl(t2.value1,0)代表是当t2.value1是空时就用0代替,非空时就用本身值。