我有一个包含3列的表格:
id | name | priority
--------------------
1 | core | 10
2 | core | 9
3 | other | 8
4 | board | 7
5 | board | 6
6 | core | 4
我想使用以下顺序对结果集进行排序,priority
但首先是那些name=core
优先级较低的行。结果应如下所示
id | name | priority
--------------------
6 | core | 4
2 | core | 9
1 | core | 10
5 | board | 6
4 | board | 7
3 | other | 8