我有一个mysql表:
+----+----------------------------+
| id | name | datetime |
+----+----------------------------+
| 1 | Qwe | 2012-11-20 08:00:00 |
| 2 | Foo | 2012-11-20 05:00:00 |
| 3 | Bar | 2013-01-01 08:00:00 |
+----+----------------------------+
如何使用 mysql 从 db 获取它,如下所示:
date
id - time - name
2012-11-20
2 - Foo - 05:00
1 - Qwe - 08:00
2013-01-01
3 - Bar - 08:00