关于字符串相加的问题:由于null加上任何字符串都为null
我现在是这样的写的,请教各位有什么更好的方法??
是SQL 2008 R2
(case when A.ItemMemo is null then '' else A.ItemMemo end) + (case when A4.Description is null then '' else A4.Description end) AS 工艺要求
isnull(A.ItemMemo,'')+isnull(A4.Description,'') as 工艺要求
[解决办法]
isnull(A.ItemMemo,'')+isnull(A4.Description,'') AS 工艺要求