Example
Return the square root of a number:
sql
SELECT SQRT(64);
Definition and Usage
The SQRT() function returns the square root of a number.
Syntax
text
SQRT(number)
Parameter Values
| Parameter | Description |
|---|---|
| number | Required. A number to calculate the square root of. Must be greater than 0 |
Technical Details
| Works in: | From MySQL 4.0 |
|---|
More Examples
Example
Return the square root of a number:
sql
SELECT SQRT(13);