Skip to content

SQRT

  • x: The number for which the square root is to be calculated. It must be a positive number or zero. If the value of X is negative, the function returns NULL.
SELECT SQRT(4);
2

In this example, the SQRT() function is used to return the square root of 4, which is 2.