oracle中decode函数相当于mysql中if函数
例:select decode(substr(granddiv_name,8,3),'999',substr(granddiv_name,12),substr(granddiv_name,11))
as grand_name from iyia_granddiv_name t
例:select decode(substr(granddiv_name,8,3),'999',substr(granddiv_name,12),substr(granddiv_name,11))
as grand_name from iyia_granddiv_name t
本文详细介绍了Oracle中DECODE函数与MySQL IF函数的使用方式和区别,通过实例展示了如何在实际场景中进行转换与应用。
2800

被折叠的 条评论
为什么被折叠?



