标签:lse code 语句 case when case ret cas fun turn
Type = SqlFunc.IF(s.Type == 10).Return(1)
.ElseIF(s.Type == 20).Return(2)
.End(0)
等同于Select语句中的
(CASE
WHEN ( [s].[type] =10 ) THEN 1
WHEN ( [s].[type] = 20 ) THEN 2
ELSE 0
END ) AS [Type]
标签:lse code 语句 case when case ret cas fun turn
原文地址:https://www.cnblogs.com/cndota2/p/13391417.html