以下示例将阐明这一点 -
mysql> Select TIMESTAMP('2017-10-22 04:05:36' + INTERVAL '4 2' Hour)AS 'HOUR VALUE INCREASED BY 4';
+---------------------------+
| HOUR VALUE INCREASED BY 4 |
+---------------------------+
| 2017-10-22 08:05:36 |
+---------------------------+
1 row in set, 1 warning (0.00 sec)
mysql> Show warnings;
+---------+------+------------------------------------------+
| Level | Code | Message |
+---------+------+------------------------------------------+
| Warning | 1292 | Truncated incorrect INTEGER value: '4 2' |
+---------+------+------------------------------------------+
1 row in set (0.00 sec)
登录后复制
以上就是如果我使用带有 INTERVAL 关键字的封闭单位值集,MySQL 将返回什么?的详细内容,更多请关注每日运维网(www.mryunwei.com)其它相关文章!