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

SQL Anywhere 11.0.1 (中文) » UltraLite - 数据库管理和参考 » UltraLite SQL 参考 » UltraLite SQL 函数 » SQL 函数 (P-Z)

 

SQRT 函数 [Numeric]

返回一个数字的平方根。

语法
SQRT( numeric-expression )
参数
  • numeric-expression   要计算其平方根的数字。

返回值

DOUBLE

注释

此函数将其参数转换为 DOUBLE,以双精度浮点执行计算,然后返回 DOUBLE 值作为结果。

标准和兼容性
  • SQL/2003   服务商扩充。

示例

以下语句返回值 3。

SELECT SQRT( 9 );