时间:2021-07-01 10:21:17 帮助过:17人阅读
SELECT * FROM dbo.check_groups ORDER BY CASE WHEN GroupCode=‘DR02‘ THEN 3 WHEN GroupCode= ‘DR03‘ THEN 2 WHEN GroupCode= ‘DR01‘ THEN 1 ELSE 0 END DESC
Sql查询按某字段值排序
标签:order sele highlight 排序 order by select cas case groups