Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

How to convert the string containing comma separated values into the multiple columns....

$
0
0

Hi Experts,

i am having the string contains the comma separated values as shown in below .

Declare @string NVARCHAR(4000)='a,b,c,.....';

here we may have n number of values with comma separated.

My desired out put is that i need to convert each value in the comma separated string to the single column value  as shown in pic.



How can i achieve this in sql server by using T-SQL.

Thanks in Advance,

Ramesh Reddy .


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>