SQL中多项合并时请加ISNULL

今天发现多项中,其中有一项为空时,所有的数据都不显示。
加ISNULL解决:
set @tolname=@tolname+ISNULL((SELECT [names] FROM [toolist] where id=@strSQL1),'')+'<br/>'

原文地址:https://www.cnblogs.com/cnaspnet/p/2097626.html