Addition Operator (+)

Syntax

+

설명

덧셈 연산자입니다

양쪽 피연산자가 모두 정수(integer)인 경우, 결과는 BIGINT 정밀도로 계산됩니다. 양쪽 피연산자 중 하나라도 부호 없는 정수(unsigned integer)인 경우, 결과 또한 부호 없는 정수입니다

실수 또는 문자열 피연산자는, 가장 정밀도가 높은 피연산자가 결과 정밀도를 결정합니다

예시

SELECT 3+5;
+-----+
| 3+5 |
+-----+
|   8 |
+-----+

관련 내용

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.