各位大虾:
小虾今天写了一段SQL SERVER 2000 连接oracle的代码,竟出现如下错误
OLE DB 提供程序 'MSDAORA' 报错。
[OLE/DB provider returned message: ORA-01476: 除数为 0
]这是什么原因 啊?谢谢了 代码如下:
select a.phone_num,a.emp_id,a.busi_code,a.phone_status,'' as product_type ,a.intime,b.mp3_record_file,b.SOURCE as Data_Resource,b.call_log,0,'无'
from
(
select * from
BUSI_WZ..BUSI_TRADITION.KF_DIAL--为SQL SERVER 2000 到oracle的一个链接
WHERE convert(char(10),intime,120)=convert(char(10),getdate()-1,120)
and phone_status in ('拒绝' ,'派单') ) a,(SELECT *
FROM SHCALL..CALLCENTER1.CALL_LOG_ZJ
where convert(char(10),begin_time,120)=convert(char(10),getdate()-1,120))b
where a.phone_num=b.callee_num and convert(char(13),intime,120)=convert(char(13),begin_time,120)
and LOWER(a.emp_id)=LOWER(b.emp_id) and a.BUSI_CODE='31' and b.busi_type='31'
其中 BUSI_WZ..BUSI_TRADITION.KF_DIAL为SQL SERVER 2000 到oracle的一个链接
小虾今天写了一段SQL SERVER 2000 连接oracle的代码,竟出现如下错误
OLE DB 提供程序 'MSDAORA' 报错。
[OLE/DB provider returned message: ORA-01476: 除数为 0
]这是什么原因 啊?谢谢了 代码如下:
select a.phone_num,a.emp_id,a.busi_code,a.phone_status,'' as product_type ,a.intime,b.mp3_record_file,b.SOURCE as Data_Resource,b.call_log,0,'无'
from
(
select * from
BUSI_WZ..BUSI_TRADITION.KF_DIAL--为SQL SERVER 2000 到oracle的一个链接
WHERE convert(char(10),intime,120)=convert(char(10),getdate()-1,120)
and phone_status in ('拒绝' ,'派单') ) a,(SELECT *
FROM SHCALL..CALLCENTER1.CALL_LOG_ZJ
where convert(char(10),begin_time,120)=convert(char(10),getdate()-1,120))b
where a.phone_num=b.callee_num and convert(char(13),intime,120)=convert(char(13),begin_time,120)
and LOWER(a.emp_id)=LOWER(b.emp_id) and a.BUSI_CODE='31' and b.busi_type='31'
其中 BUSI_WZ..BUSI_TRADITION.KF_DIAL为SQL SERVER 2000 到oracle的一个链接
解决方案 »
- 请教如何向sql传递参数的问题
- 联接查询
- 请问怎么向我的这个表中插入一行记录????
- 有谁知道在sql plus中怎么查看视图的源代码吗?
- 怎么把英文系统下的英文oracle数据库导入到中文系统下中文oracle数据库中?在线等待!!
- 讨论查询执行计划
- 为什么我在AIX上用命令创建数据库时,报无法创建控制文件错误,好象是aix不允许oracle创建控制文件
- 请问谁有oracle9i数据库再archive模式下日志文件的清理的经验。
- 学习数据库优化,有一句话没看懂,来人帮解答
- 菜鸟问题,大量的数据中怎么删除表中重复行?
- 谁用过oracle sql developer;难道oracle sql developer 的导入excel数据功能有致命BUG???!!!!
- oracle 的 toplevel 怎么用啊
假设是a/b
decode(b,0,null,a/b) 这样如果b为0,输出null,不为0输出a/b
就不会报错了