I need to split a comma separated field into multiple records based on ‘,’
Advertisement
Answer
Youll want to use string_split like this:
select t.S.No, x.Value from yourTable t CROSS APPLY string_split(Char, ',') x
I need to split a comma separated field into multiple records based on ‘,’
Youll want to use string_split like this:
select t.S.No, x.Value from yourTable t CROSS APPLY string_split(Char, ',') x