PHP开发教程

MySQL pow()函数

POW(X,Y)

POWER(X,Y)

这两个函数返回X的Y次方。

mysql> SELECT POWER(3,3);
+---------------------------------------------------------+
| POWER(3,3)                                              |
+---------------------------------------------------------+
| 27                                                      |
+---------------------------------------------------------+
1 row in set (0.00 sec)


Powered by PHP二次开发 ©2008-2017