如:select a/t,b/t,c/t如果t为空或零时就会出错,有何解决办法??? select case t when 0 then 0 else a/t end,case t when 0 then 0 else b/t end.... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 SELECT op.OutNo,op.OrderNo,op.ProductNo,Rtrim(p.strProductName) AS strProductName,p.strUnit,p.FloInLength,p.FloInWidth,p.FloInHeight,p.fAgio,pt.strtypedesc,pt.intPackRatein,pt.intPackRateMid,pt.intPackRateOut,o.PackType,(isnull(o.sl,0)/pt.intPackRatein)as inBox,(isnull(o.sl,0)/pt.intPackRatemidas midBox,(isnull(o.sl,0)/pt.intPackRateOut)as outBox以上是一部分代码,主要问题在除数为0时的问题 如何统计一个字符串包含的特定字符的数目? 如何用SQL截取字符串 多大的mdf文件才算大 一SQL语句,去重复值问题 我不小心把一个表删除了,怎样恢复啊,谢谢大家帮助!! 存储过程 where条件不定 ssis 中,我想数据库之间互相导数据, 下一步如何办? 存储过程问题~~菜鸟提问!! 急急急~ 在线等 求sql语句 这种数据怎样表示?? 关于开发版和企业版的差异 怎么样才能结结贴
p.FloInHeight,p.fAgio,pt.strtypedesc,pt.intPackRatein,pt.intPackRateMid,pt.intPackRateOut,o.PackType,
(isnull(o.sl,0)/pt.intPackRatein)as inBox,
(isnull(o.sl,0)/pt.intPackRatemidas midBox,
(isnull(o.sl,0)/pt.intPackRateOut)as outBox以上是一部分代码,主要问题在除数为0时的问题