询问:
SELECT * FROM station
输出:
id | stationname | total
-------------------------
1 | Khar | 5
2 | SantaCruz | 3
3 | Sion | 2
4 | VT | 1
5 | newFort | 3
6 | Bandra | 2
7 | Worli | 1
8 | Sanpada | 3
9 | Joe | 2
10 | Sally | 1
11 | Elphiston | 2
12 | Currey Road | 1
是否可以显示所有记录,但条件是在第一个位置及以下显示特定记录,然后显示其余所有记录
例如我的where
情况是
where id=10
期望的输出:
id | stationname | total
-------------------------
10 | Sally | 1
1 | Khar | 5
2 | SantaCruz | 3
3 | Sion | 2
4 | VT | 1
5 | newFort | 3
6 | Bandra | 2
7 | Worli | 1
8 | Sanpada | 3
9 | Joe | 2
11 | Elphiston | 2
12 | Currey Road | 1
任何想法,提示将不胜感激