你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
SQRT (Azure Cosmos DB)
适用于: SQL API
返回指定数值的平方根。
语法
SQRT(<numeric_expr>)
参数
numeric_expr
是一个数值表达式。
返回类型
返回一个数值表达式。
示例
以下示例返回数字 1-3 的平方根。
SELECT SQRT(1) AS s1, SQRT(2.0) AS s2, SQRT(3) AS s3
下面是结果集。
[{s1: 1, s2: 1.4142135623730952, s3: 1.7320508075688772}]
备注
此系统函数不会使用索引。