decode能放进范围值吗? 比如:decode(TIME,'<120','2-','120<??<300','3-5')就是我想根据TIME的值来换,不可能从1-120,120-300都让我写一个吧?能用范围找吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不行。用case吧。case的性能与decode相当,10g略高于decode,而且比decode直观,易与维护 不能写范围,可以用case when 替换.case when time<120 then '20' when time >120 and time<300 then '3-5' end 非要用decode的话,就用sign函数凑合一下decode(-1,sign(time-1)*sign(time-120),...,sign(time-120)*sign(time-300),...)当然效率低是显而易见的 备份和还原高手请进 ado打开Oracle的程序的路径为什么不能包含右括号')' 触发器新问题 紧急求助(关于用c#读取SAP数据库中文显示不正常),分不够再开帖子给 一个具体应用问题,大家进来看看 数据库同步问题 在A表的Before Insert 触发器里面好像不能再查询A表, .net下如何把本机上的文件(.bmp)插入到BFILE 类型里面。急,在线等! 如何在RedHat7.2 上安装oracle9i。提供一下安装文档。分数不是问题。 oracle安装出现好多解决不了的问题!求大神门帮助啊! 求一个反着的行列转换的方法 oracle导入问题
case的性能与decode相当,10g略高于decode,而且比decode直观,易与维护
case when time<120 then '20'
when time >120 and time<300 then '3-5'
end
decode(-1,sign(time-1)*sign(time-120),...,sign(time-120)*sign(time-300),...)
当然效率低是显而易见的