当我通过select driver_id, checkpoint_id, temp.trip_id, MIN(scheduled) AS scheduled
from
(select driver_id,checkpoint_id,trip_id,min(scheduled) as scheduled
from trips left join checkpoints
on trips.trip_id=checkpoints.trip_id
where scheduled>='2017-04-28 00:00:00'
and scheduled<'2018-04-29 00:00:00'
group by checkpoints.trip_id)
temp
GROUP BY driver_id;
+-----------+---------------+---------+---------------------+
| driver_id | checkpoint_id | trip_id | scheduled |
+-----------+---------------+---------+---------------------+
| NULL | 1237 | 104 | 2017-04-28 04:15:00 |
| 23 | 9301 | 776 | 2017-04-28 09:30:00 |
| 32 | 6073 | 507 | 2017-04-28 08:05:00 |
| 51 | 9421 | 786 | 2017-05-01 12:20:00 |
| 67 | 7610 | 635 | 2017-04-28 00:34:00 |
| 70 | 9997 | 834 | 2017-04-29 09:22:00 |
| 88 | 11269 | 940 | 2017-04-28 11:28:00 |
| 106 | 1357 | 114 | 2017-04-28 09:30:00 |
| 107 | 4549 | 380 | 2017-04-28 14:50:00 |
| 110 | 1345 | 113 | 2017-04-28 00:03:00 |
| 116 | 11905 | 993 | 2017-04-29 00:13:00 |
| 117 | 11049 | 921 | 2017-04-28 00:30:00 |
| 132 | 9337 | 779 | 2017-04-28 08:09:00 |
+-----------+---------------+---------+---------------------+
13 rows in set (0.05 sec)
提示中的gradlew build
来构建我的Android项目时,我总是从Gradle获得大量这些字符行输出:
它构建并且工作正常但是在构建Gradle的输出时不断在正常行(在屏幕截图的上半部分)和一个字符行(在屏幕截图的下半部分)之间切换,这看起来很尴尬并且难以意识到那里发生了什么。
使用Gradle 3.5和最新的Android Studio进行测试。我可以一直在Windows 7和10上重现这一点。谁知道那里有什么问题?