bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL POW() Function

Concept visual

MySQL POW() Function

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Example

Return 4 raised to the second power:

SELECT POW(4, 2);

Definition and Usage

The POW() function returns the value of a number raised to the power of another number.

Note:

This function is equal to the POWER() function.

Syntax

Pow(

x, y)

Parameter Values

Parameter

Description x

Required. A number (the base) y Required. A number (the exponent)

Technical Details

Works in:

From MySQL 4.0

More Examples

Example

Return 8 raised to the third power:

SELECT POW(8, 3);

Previous

❮ MySQL Functions

Next

Previous

MySQL PI() Function

Next

MySQL POWER() Function