+
This page is part of MariaDB's Documentation.
The parent of this page is: SQL Operators for MariaDB Xpand
Topics on this page:
Overview
Addition.
USAGE
number1 + number2
+ number
Value Name | Description |
---|---|
| Two numbers to add together or one number to treat as a positive value |
DETAILS
The +
operator adds two numbers together.
If the number before the plus is not provided, the given numeric value is treated as positive.
A NULL
is returned if either value is NULL
.
EXAMPLES
SELECT 25 + 17, + 99;
+---------+------+
| 25 + 17 | + 99 |
+---------+------+
| 42 | 99 |
+---------+------+