- 论坛徽章:
- 0
|
这玩意反过来行,你这种形式还真不行。
ysql> select date_format('2012-06-05 07:04:48','%a %d %M %Y %r');
+-----------------------------------------------------+
| date_format('2012-06-05 07:04:48','%a %d %M %Y %r') |
+-----------------------------------------------------+
| Tue 05 June 2012 07:04:48 AM |
+-----------------------------------------------------+
1 row in set (0.00 sec)
mysql> select date_format('Tue 05 June 2012 07:04:48 AM','%a %d %M %Y %r');
+--------------------------------------------------------------+
| date_format('Tue 05 June 2012 07:04:48 AM','%a %d %M %Y %r') |
+--------------------------------------------------------------+
| NULL |
+--------------------------------------------------------------+
|
|