一个视图的问题.

wavestudio 2003-08-21 05:04:33
同一个视图定义语句,在oracle816下面顺利编译通过,在oracle805下面报错,错误为缺少表达式,请高手帮我看看。
select a.borrowno,a.name,b.deptname from LIUJING.DABORROWCARD a, LIUJING.vsdept b
where a.dept=b.deptcode and a.borrowno in
(select borrowno from liujing.DAARCHIVESUSE
where borrowdt+(select abilityvalue from liujing.daBorrowAbility where batype=1)<sysdate)
...全文
67 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
klbt 2003-08-23
  • 打赏
  • 举报
回复
学习。
beckhambobo 2003-08-21
  • 打赏
  • 举报
回复
可这样是否行?
select a.borrowno,a.name,b.deptname from LIUJING.DABORROWCARD a, LIUJING.vsdept b
where a.dept=b.deptcode and a.borrowno in
(select borrowno from liujing.DAARCHIVESUSE
where (select DAARCHIVESUSE.borrowdt+abilityvalue from liujing.daBorrowAbility where batype=1)<sysdate)
beckhambobo 2003-08-21
  • 打赏
  • 举报
回复
可这样是否行?
select a.borrowno,a.name,b.deptname from LIUJING.DABORROWCARD a, LIUJING.vsdept b
where a.dept=b.deptcode and a.borrowno in
(select borrowno from liujing.DAARCHIVESUSE
where (select DAARCHIVESUSE.borrowdt+abilityvalue from liujing.daBorrowAbility where batype=1)<sysdate)
armu80830 2003-08-21
  • 打赏
  • 举报
回复
borrowdt+(select abilityvalue from liujing.daBorrowAbility where batype=1)<sysdate
这段估计在oracle805下通过不了

17,086

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧