Welcome 微信登录

首页 / 数据库 / MySQL / Oracle 除数不能为0

--Oracle建表create table mytable(a int,b int,c int, d int)
--Oracle查表(通过case when)
select * from mytableselect a,b,c,d
        ,case when b=0 then
                   0
        else
               (t.a-t.b)/t.b
        end case
 from mytable t更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12Oracle 修改某个字段的数据类型三种方式Oracle中Decode()函数相关资讯      Oracle数据库基础教程 
  • 在Oracle数据库中插入含有&符号的  (03/06/2013 09:20:14)
  • Oracle 执行计划更改导致数据加工  (02/13/2013 14:45:04)
  • 判断Oracle Sequence是否存在  (02/13/2013 14:32:26)
  • Oracle数据库中无法对数据表进行  (02/26/2013 14:24:58)
  • Oracle 在同一台主机上建立用户管  (02/13/2013 14:40:58)
  • Oracle em 无法启动,报not found错  (02/13/2013 14:29:48)
本文评论 查看全部评论 (0)
表情: 姓名: 字数