Mega Code Archive

 
Categories / MySQL Tutorial / Math Numeric Functions
 

Unary minus

This operator changes the sign of the argument. mysql> mysql> SELECT -2; +----+ | -2 | +----+ | -2 | +----+ 1 row in set (0.02 sec) mysql>