ADDTIME
Syntax
ADDTIME(expr1,expr2)
Description
ADDTIME()
adds expr2 to expr1 and returns the result. expr1 is a time
or datetime expression, and expr2 is a time expression.
Examples
SELECT ADDTIME('2007-12-31 23:59:59.999999', '1 1:1:1.000002'); +---------------------------------------------------------+ | ADDTIME('2007-12-31 23:59:59.999999', '1 1:1:1.000002') | +---------------------------------------------------------+ | 2008-01-02 01:01:01.000001 | +---------------------------------------------------------+ SELECT ADDTIME('01:00:00.999999', '02:00:00.999998'); +-----------------------------------------------+ | ADDTIME('01:00:00.999999', '02:00:00.999998') | +-----------------------------------------------+ | 03:00:01.999997 | +-----------------------------------------------+
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.