跳到主要内容
跳到主要内容

pow

pow

description

Syntax

DOUBLE pow(DOUBLE a, DOUBLE b) 返回ab次方.

example

mysql> select pow(2,0);
+---------------+
| pow(2.0, 0.0) |
+---------------+
| 1 |
+---------------+
mysql> select pow(2,3);
+---------------+
| pow(2.0, 3.0) |
+---------------+
| 8 |
+---------------+
mysql> select pow(3,2.4);
+--------------------+
| pow(3.0, 2.4) |
+--------------------+
| 13.966610165238235 |
+--------------------+

keywords

POW