如何按Log_time(DESC)排序,但進入GroupID部分?按Log_time排序,但進入組部分?
示例數據:
Field Names:
LogID
GroupID
Log_Output
Log_time
1 | xdsd | Text 1 | 2011-08-08 11:11:00
2 | x42e | Text 2 | 2011-08-08 11:12:00
3 | xdsd | Text 3 | 2011-08-08 11:13:00
4 | x42e | Text 4 | 2011-08-08 11:16:00
5 | x42e | Text 5 | 2011-08-08 11:17:00
6 | xdsd | Text 6 | 2011-08-08 11:20:00
我想它下令像這樣:
6 | xdsd | Text 6 | 2011-08-08 11:20:00
3 | xdsd | Text 3 | 2011-08-08 11:13:00
1 | xdsd | Text 1 | 2011-08-08 11:11:00
5 | x42e | Text 5 | 2011-08-08 11:17:00
4 | x42e | Text 4 | 2011-08-08 11:16:00
2 | x42e | Text 2 | 2011-08-08 11:12:00
什麼ü嘗試到現在?當你嘗試按Log_time排序時,你會得到什麼? –