如何在mysql中使用convert_tz,而在网上遇到一些mysql网站我遇到了这个函数,当我尝试复制它时,它给了我null值。为什么这不起作用? 以下是脚本
SELECT CONVERT_TZ('2004-01-01 12:00:00','GMT','MET');
这是web上显示的convert_tz(),
输出mysql> SELECT CONVERT_TZ('2004-01-01 12:00:00','GMT','MET');
+---------------------------------------------------------+
| CONVERT_TZ('2004-01-01 12:00:00','GMT','MET') |
+---------------------------------------------------------+
| 2004-01-01 13:00:00 |
+---------------------------------------------------------+
1 row in set (0.00 sec)