解码和案例之间的差异 [英] diffrence between decode and case

查看:96
本文介绍了解码和案例之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。我想知道oracle中可用的解码和案例函数之间的差异 ....帮帮我...

解决方案

通过使用DECODE和CASE,我们可以获得相同的输出。

两者都可以直接在SQL语句中使用,但性能明智的CASE在与DECODE的比较中更快。 / blockquote>

CASE也可以处理范围操作。



CASE也可以处理范围操作。



decode用于字符串&数字的案例


hi all., i want to know the diffrence between the decode and case function that is available in oracle....help me ya...

解决方案

By using either DECODE and CASE we can get the same output.
Also both can be used directly in SQL statments but performance wise CASE is faster in comparision to DECODE.


CASE can handle range operations also.


CASE can handle range operations also.

decode is used for strings & case for numerics


这篇关于解码和案例之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆