如题,例如
select a.* , c.ovt_date ,
b.shf_at1 ,
case when b.shf_of1 < b.shf_at1 then trunc(a.rcd_dat) + 1 + (b.shf_of1 - trunc(b.shf_of1))
else b.shf_of1 end
from att_rcd a, att_supply_ovt_t c , att_shf b
where rcd_dat = to_date('20061127','yyyymmdd') and 。省略以上SQL可以有运行结果,但是在定义游标时却出错,如:cursor test is
select.......语句如上段为何出错?
select a.* , c.ovt_date ,
b.shf_at1 ,
case when b.shf_of1 < b.shf_at1 then trunc(a.rcd_dat) + 1 + (b.shf_of1 - trunc(b.shf_of1))
else b.shf_of1 end
from att_rcd a, att_supply_ovt_t c , att_shf b
where rcd_dat = to_date('20061127','yyyymmdd') and 。省略以上SQL可以有运行结果,但是在定义游标时却出错,如:cursor test is
select.......语句如上段为何出错?
解决方案 »
- 关于oracle数据库,更改数据库名称的问题:
- 数据库存储过程中执行查询语句
- 请教oracle 10g通过0DBC连接SQL SERVER2000的问题
- 请求大家帮助解决oracle817的问题
- 请问如何编程执行sql脚本呢
- 本机装oracle和虚拟装oracle有什么差别。。。
- oracle数据移植
- 关于db_block_buffers设置的问题!
- 想在hp-unix11上安装oracle,应选哪个版本?
- ****设置一个批次允许最大执行的时间****
- oracle10g的OracleOraDb10g_home1iSQL*Plus服务启动不了
- 同一数据库不同的表里可以有 相同名字而含义不同的字段么?
学习