码迷,mamicode.com
首页 > 其他好文 > 详细

FUNCTION_POWER

时间:2017-10-29 23:15:34      阅读:201      评论:0      收藏:0      [点我收藏+]

标签:nta   sed   ora   second   function   compute   pl/sql   syntax   ret   

1.power function

Definition:
The Oracle PL/SQL, the POWER function is a built in function which takes two numeric inputs and returns numeric(数字的) result as first argument raised to second argument. The statement "POWER (a,b)" computes as ( a^b ).

Example Syntax:

POWER(x,y)

Here, "x" is the base while "y" is the exponent(指数).

Example usage:

The SQL query below calculates 2nd power of base 10.

select power(10,2) from dual;

Return result is 100.

FUNCTION_POWER

标签:nta   sed   ora   second   function   compute   pl/sql   syntax   ret   

原文地址:http://www.cnblogs.com/yjhlsbnf/p/7751446.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!