如果我使用带有 INTERVAL 关键字的封闭单位值集,MySQL 将返回什么?
摘要:
以下示例将阐明这一点-mysql>SelectTIMESTAMP('2017-10-2204:05:36'+INTERVAL'42'Hour)AS'HOURVALUEINCREASEDBY4';+---------------------------+|HOURVALUEINCREASEDB...
以下示例将阐明这一点 -
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 将返回什么?的详细内容,更多请关注其它相关文章!