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

MINUS



Negates a numeric value.

Syntax

MINUS( <x> )

Aliases

Examples

SELECT MINUS(PI()), NEG(PI()), NEGATE(PI()), SUBTRACT(PI()); ┌───────────────────────────────────────────────────────────────────────────────────┐ │ minus(pi()) │ neg(pi()) │ negate(pi()) │ subtract(pi()) │ ├────────────────────┼────────────────────┼────────────────────┼────────────────────┤ │ -3.141592653589793-3.141592653589793-3.141592653589793-3.141592653589793 │ └───────────────────────────────────────────────────────────────────────────────────┘

Was this page helpful?