Muhammad Abbas - Data Engineering Architect
Pages
CV
Profile
BLOG
Search This Blog
Thursday, June 21, 2007
T-SQL:Concatenate all values of row in a column
DECLARE @title_ids varchar(150), @delimiter char
SET @delimiter = ','
SELECT @title_ids = COALESCE(@title_ids + @delimiter, '') + title_id FROM titles
SELECT @title_ids AS [List of Title IDs]
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment