ADD()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Xpand
Topics on this page:
Overview
Return the sum of two numbers.
USAGE
ADD([number,] number)
Argument Name | Description |
---|---|
| Two numbers to add together or one number to treat as a positive value |
DETAILS
ADD()
is a mathematical function that adds two numbers together.
If the optional first argument is not provided, it defaults to 0
.
A NULL
is returned if either argument is NULL
.
EXAMPLES
SELECT ADD(25, 17), ADD(99);
+-------------+---------+
| ADD(25, 17) | ADD(99) |
+-------------+---------+
| 42 | 99 |
+-------------+---------+