有时我会nvl()
在代码中看到一个函数。在 Java 的情况下,它看起来像这样:
public static String nvl(String value, String alternateValue) {
if (value == null)
return alternateValue;
return value;
}
我明白这个函数的作用,但我不明白为什么叫它nvl
。为什么不呢checkNotNull
?returnNotNull
NVL 代表什么?
我猜是N ull Value L ...?