negative
The negative function is used to return the negation of a.
Syntax
negative(INT a)
Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| a | Yes | DOUBLE, BIGINT, DECIMAL, or STRING | The format of parameter a includes floating-point format, integer format, and string format. |
Return Values
Returns a value of type DECIMAL or INT.
If a is NULL, NULL is returned.
Example Code
Returns -1.
SELECT negative(1);
Returns 3.
SELECT negative(-3);
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot