SQLite
power()函数返回一个指定数字的指定的次方。比如
power(x, y)返回
x的
y次方。
SQLite
power()函数与
pow()函数完全相同。
power()
语法
这里是 SQLite
power()函数的语法:
power(x, y)
参数
x必需的。
y必需的。
返回值
SQLite
power(x, y)返回
x的
y次方。
如果任意一个参数为
NULL,
power()函数将返回
NULL。
如果您提供了一个不是数字类型的参数,SQLite
power()函数将返回
NULL。
power()
示例
本示例展示了 SQLite
power()函数的基本用法:
SELECT power(3, 4), power(3.3, 1.2);
power(3, 4) = 81.0power(3.3, 1.2) = 4.19002609637701
