SELECT *
FROM [ProjectInfo]
ORDER BY (CASE DepartmentName
WHEN 'AAA' THEN 1
WHEN 'BBB' THEN 2
WHEN 'CCC' THEN 3
ELSE 4
END)
GO
转载于:https://www.cnblogs.com/kenzhang/p/3607816.html
SELECT *
FROM [ProjectInfo]
ORDER BY (CASE DepartmentName
WHEN 'AAA' THEN 1
WHEN 'BBB' THEN 2
WHEN 'CCC' THEN 3
ELSE 4
END)
GO
转载于:https://www.cnblogs.com/kenzhang/p/3607816.html