sql server 将逗号分隔的行转多列并且带附加ID
摘要:
原表结构: 转换后的表结构: sql: SELECT TU.Id as UserId,SUBSTRING(TU.WorkingForGroupIds, number ,CHARINDEX(',',TU.WorkingForGroupIds+',',number)-number) as WrokGro 阅读全文
posted @ 2020-09-08 11:32 哦呵呵G 阅读(436) 评论(0) 推荐(0) 编辑