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

ABS



Returns the absolute value of x.

Syntax

ABS( <x> )

Examples

SELECT ABS(-5); ┌────────────┐ │ abs((- 5)) │ ├────────────┤ │ 5 │ └────────────┘

Was this page helpful?