SQL累加注意点



declare @test varchar(50)
select @test

declare @otherPrivateProducts varchar(max)
        set @otherPrivateProducts=''
        select @otherPrivateProducts=isnull(@otherPrivateProducts,'')+isnull(EproductIdStr,'') from EprivateShowRoom where EcompanyId={0}
        select @otherPrivateProducts;

原文地址:https://www.cnblogs.com/ChengDong/p/2177898.html