SELECT
(CASE WHEN [CapacityStatus]=0 THEN '达标'
WHEN [CapacityStatus]=1 THEN '超产能'
WHEN [CapacityStatus]=2 THEN '不达标'
ELSE 'Eorr' END)AS CapacityStatus ,PKDKey
FROM [IMS_QC].[dbo].[ProductionKanBanDetail]
做个笔记,SQL CASE选择语应用
最新推荐文章于 2024-08-29 21:34:44 发布