# POW

> 在 StackQL 中使用 SQL 計算一個數的另一個數次方。

Source: https://stackql.io/zh-hant/language-spec/functions/math/pow

計算 *x* 的 *y* 次方。

另請參閱：  
[[`SELECT`]](/language-spec/select) 

* * * 

## 語法

```sql
SELECT POW(x, y) FROM <multipartIdentifier>;
-- or using the equivalent
SELECT POWER(x, y) FROM <multipartIdentifier>;
```

## 引數

__*x*__  
底數，為數值運算式。

__*y*__  
底數 *x* 要乘方的指數，同樣為數值運算式。

## 傳回值
傳回 *x* 的 *y* 次方結果。

* * *

## 範例

### 計算 x 的 y 次方

```sql
SELECT POW(2, 3) AS result;
```
