1.datetime類型字段格式化
結果:
+---------------------+
| date |
+---------------------+
| 2015-12-05 02:12:35 |
| 2015-12-05 02:12:55 |
| 2015-12-05 02:12:00 |
| 2015-12-05 02:12:20 |
| 2015-12-05 03:12:16 |
+---------------------+
('meaage' 表名,'date'一個datetim數據類型的字段)
結果:
+------------+
| date |
+------------+
| 2015-12-05 |
| 2015-12-05 |
| 2015-12-05 |
| 2015-12-05 |
| 2015-12-05 |
+------------+