oracle nvl Tutorial

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/jiangwudidebaba/article/details/97272198

oralce function nvl (table_col, b) when the mean how table_col is empty value b, for example, may be blended sum nvl (sum (table_col), b)

select "NVL"(count(cp.id), 0),"NVL"(sum(cp.change_price), 0) from C_CONTRACT_CHANGE_PROTOCOL  cp

Guess you like

Origin blog.csdn.net/jiangwudidebaba/article/details/97272198
Recommended