以下为所有日期时间运算符列表:

    运算符操作数含义
    +二元DATE_ADD函数
    -二元DATE_SUB函数

    例如:

    1. OceanBase (root@oceanbase)> SELECT '2008-12-31 23:59:59' + INTERVAL 1 SECOND;
    2. +-------------------------------------------+
    3. | '2008-12-31 23:59:59' + INTERVAL 1 SECOND |
    4. +-------------------------------------------+
    5. | 2009-01-01 00:00:00 |
    6. +-------------------------------------------+
    7. 1 row in set (0.01 sec)