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