答案 0 :(得分:1)
使用CASE
声明:
SELECT
CASE WHEN EST = 1 THEN 'EST'
WHEN INI = 1 THEN 'INI'
WHEN AD = 1 THEN 'AD'
WHEN DEV = 1 THEN 'DEV'
WHEN UAT = 1 THEN 'UAT'
WHEN IMP = 1 THEN 'IMP'
END AS [Status]
FROM table