2PTTechnology

The platform that enables you to build rich, interactive communities
Welcome to 2PTTechnology Sign in | Join | Help
in Search

concatenate dynamic rows in sql

Last post 09-23-2009, 8:20 AM by twaligora. 0 replies.
Sort Posts: Previous Next
  •  09-23-2009, 8:20 AM 219

    concatenate dynamic rows in sql

    declare @Output varchar(1000)

    SELECT @Output = COALESCE(@Output+', ', '') + CONVERT(varchar(20), ol.prdnum)

    FROM dbo.ord_ln ol

    WHERE ordnum = @order

     

    select @Output

View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems