想要在結果傳回指定的排序
SELECT Autoid, ITEMName, TypeCode
FROM TypeData
WHERE 1=1
ORDER BY
( CASE
WHEN TypeCode= 'CRN' THEN '01'
WHEN TypeCode= 'OTH' THEN '02'
WHEN TypeCode= 'PON' THEN '03'
WHEN TypeCode= 'CIN' THEN '04'
WHEN TypeCode= 'CLT' THEN '05'
WHEN TypeCode= 'INC' THEN '06'
ELSE TypeCode
END)