近日看oracle文档,发现oralce的一个特性,以往还真没发现
Floating-Point Conditions
不能贴图片,用文字记录一下
is nan: --matches the NAN special value,which means "not a number"(introduced in Oracle 10g)
is infinite: --matches infinite binary_float and binary_double values(introduced in Oracle 10g)
文档上提供的例子:
SELECT COUNT(*) FROM employees
WHERE commission_pct IS NOT NAN;
SELECT last_name FROM employees
WHERE salary IS NOT INFINITE;
Floating-Point Conditions
不能贴图片,用文字记录一下
is nan: --matches the NAN special value,which means "not a number"(introduced in Oracle 10g)
is infinite: --matches infinite binary_float and binary_double values(introduced in Oracle 10g)
文档上提供的例子:
SELECT COUNT(*) FROM employees
WHERE commission_pct IS NOT NAN;
SELECT last_name FROM employees
WHERE salary IS NOT INFINITE;
本文介绍了Oracle数据库中处理特殊浮点数值的方法,包括NAN(非数字)和无限大值的判断技巧,并提供了具体的应用实例。
1644

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



