Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » SQL Anywhere Server - SQL Reference » Using SQL » SQL functions » SQL functions (P-Z)

 

SQRT function [Numeric]

Returns the square root of a number.

Syntax
SQRT( numeric-expression )
Parameters
  • numeric-expression   The number for which the square root is to be calculated.

Returns

DOUBLE

Remarks

This function converts its argument to DOUBLE, performs the computation in double-precision floating point, and returns a DOUBLE as the result.

Standards and compatibility
  • SQL/2003   Vendor extension.

Example

The following statement returns the value 3.

SELECT SQRT( 9 );