如题,sql如下select
*
from base_dep_lab bdl
inner join v_report_sj6_render sj6 on trim(sj6.base_dep_code)
in(
select code from base_dep start with code = bdl.base_dep_code connect by prior code = base_dep_code_parent
)
inner join base_dep bd on bdl.base_dep_code = bd.code
where
sj6.year = (select value from system_config where code = 'report_year')
and bdl.reported = 1 and sj6.status=1
*
from base_dep_lab bdl
inner join v_report_sj6_render sj6 on trim(sj6.base_dep_code)
in(
select code from base_dep start with code = bdl.base_dep_code connect by prior code = base_dep_code_parent
)
inner join base_dep bd on bdl.base_dep_code = bd.code
where
sj6.year = (select value from system_config where code = 'report_year')
and bdl.reported = 1 and sj6.status=1
解决方案 »
- 求windows 32位版oracle 10g gateways安装文件
- group by rollup
- oracle 出现符号 "WHILE"在需要下列之一时::= . ( @ % ; not null range default character
- Oracle 存储过程速度慢
- 多个数据库同步的问题
- 如何用sql查询出某个月的第一天,和最后一天
- 哪儿能下载免费oracle资料,请各位高手帮助
- 两个关于FOXBASE2。1的问题(急!急!急!)
- 一个简单的问题
- 在oracle中能否得一个表所有这段,及字段的中文名称
- 请教一个存储过程中的插入数据问题
- 一个SQL SERVER2000存储过程转ORACLE存储过程的问题
select code from base_dep start with code = bdl.base_dep_code connect by prior code = base_dep_code_parent这句中的 bdl.base_dep_code 用到了外面的bdl,所有不能识别。我有什么办法能够实现相同功能呢!