[英]split data in a single row into multiple records
I need to split a comma separated field into multiple records based on ','我需要根据“,”将逗号分隔的字段拆分为多个记录
Youll want to use string_split like this:你会想像这样使用 string_split :
select t.S.No, x.Value
from yourTable t
CROSS APPLY string_split(Char, ',') x
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.