博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
oracle 取余/求积
阅读量:7112 次
发布时间:2019-06-28

本文共 1273 字,大约阅读时间需要 4 分钟。

hot3.png

POWER

Syntax

Description of power.gif follows

 

Purpose

POWER returns n2 raised to the n1 power. The base n2 and the exponent n1 can be any numbers, but if n2 is negative, then n1 must be an integer.

This function takes as arguments any numeric datatype or any nonnumeric datatype that can be implicitly converted to a numeric datatype. If any argument is BINARY_FLOAT or BINARY_DOUBLE, then the function returns BINARY_DOUBLE. Otherwise the function returns NUMBER.

See Also:

 for more information on implicit conversion

Examples

The following example returns 3 squared:

SELECT POWER(3,2) "Raised" FROM DUAL;    Raised----------         9

MOD

Syntax

Description of mod.gif follows

 

Purpose

MOD returns the remainder of n2 divided by n1. Returns n2 if n1 is 0.

This function takes as arguments any numeric datatype or any nonnumeric datatype that can be implicitly converted to a numeric datatype. Oracle determines the argument with the highest numeric precedence, implicitly converts the remaining arguments to that datatype, and returns that datatype.

See Also:

 for more information on implicit conversion and  for information on numeric precedence

Examples

The following example returns the remainder of 11 divided by 4:

SELECT MOD(11,4) "Modulus" FROM DUAL;   Modulus----------         3

转载于:https://my.oschina.net/u/2308739/blog/1504559

你可能感兴趣的文章
在26个大小写字母(52个),以及9个数字组成的字符列表中,随机生成10个8位密码...
查看>>
办公软件word使用技巧 - imsoft.cnblogs
查看>>
swift 学习- 16 -- 构造过程 02
查看>>
Android IOS WebRTC 音视频开发总结(八十三)-- 使用WebRTC广播网络摄像头视频(上)...
查看>>
异步读写(ReadFileEx和ReadFile)之overlapped
查看>>
51nod1582-n叉树
查看>>
Android重绘ListView高度
查看>>
Android 记住密码和自动登录界面的实现(SharedPreferences 的用法)
查看>>
SageMath: 符号计算
查看>>
校园论坛与校园沟通平台的未来
查看>>
Redis List数据类型
查看>>
php 下载保存文件保存到本地的两种实现方法
查看>>
Azure IoT 技术研究系列4
查看>>
《人月神话》阅读笔记01
查看>>
Tree
查看>>
jQuery的Dom插入操作图示
查看>>
配置舒适的工作环境
查看>>
UGUI代码分析
查看>>
蓝鲸财经新闻记者实战培训
查看>>
Tcpdump Manul
查看>>