📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

SQRT



Returns the square root of a nonnegative number x. Returns Nan for negative input.

Syntax

SQRT( <x> )

Examples

SELECT SQRT(4); ┌─────────┐ │ sqrt(4) │ ├─────────┤ │ 2 │ └─────────┘

Was this page helpful?