Curriculum
Course: MYSQL
Login

Curriculum

MYSQL

MySQL References

0/140
Text lesson

POW

Example

Provide the result of raising 4 to the power of 2.

SELECT POW(42); 

Definition and Usage

The POW() function yields the result of a number raised to a specified power.

Note: This function is equivalent to the POWER() function.

Syntax

POW(x, y)

Parameter Values

Parameter

Description

x

Mandatory: A numerical value representing the base.

y

Mandatory: A numerical value representing the exponent.

Technical Details

Works in: From MySQL 4.0

More Examples

Example

Provide the result of raising 8 to the power of 3.

SELECT POW(83);