0

我正在尝试设置此 col,但出现错误:

FirstName + (CASE WHEN LEN(FirstName + LastName) > 0 THEN ' ' ELSE '') + LastName
4

2 回答 2

2

您应该用 END 关闭 CASE ,而且在我看来,以下值会更好:

FirstName + (CASE WHEN LEN(FirstName) > 0 AND LEN(LastName) > 0 THEN ' ' ELSE '' END) + LastName
于 2009-08-02T19:55:21.013 回答
1
FirstName + (CASE WHEN LEN(FirstName + LastName) > 0 THEN ' ' ELSE '' end) + LastName

错过了结局

于 2009-08-02T19:54:17.787 回答