基于两个字符在一个列中拆分多值

时间:2016-11-02 14:30:18

标签: sql

我希望在一列中分解多值中的多个值,并且可以是动态量。第一个字符将是一个数字:(例如:1:2:等等)然后结束值将以

结束

参见示例:

0:Certificate CN=*.eas.xmcxxxare.com, OU=Domain Control Validated Will Expire within next 120 days.101  Days Left  <br>, 1:Certificate CN=*.rss.wxxxxare.com, OU=Domain Control Validated Will Expire within next 120 days.   <br> 71  Days Left  <br>, 2:Certificate CN=*.hds.xxxgware.com, OU=Domain Control Validated Will Expire within next 120 days.   <br> 85  Days Left  <br>, 3:Certificate CN=*.cas.xxxxare.com, OU=Domain Control Validated Will Expire within next 120 days.   <br> 75  Days Left  <br>, 4:Certificate CN=*.isxxxx.mcgware.com, OU=Domain Control Validated Will Expire within next 120 days.   <br> 85  Days Left  <br>
New Column Name: Message0  
Value in Column: "Certificate CN=*.eas.xmcxxxare.com, OU=Domain Control Validated Will Expire within next 120 days."
New column Name: Message01
Value in Column: "101  Days Left"
New Column Name: Message1  
Value in Column: "Certificate CN=*.rss.wxxxxare.com, OU=Domain Control Validated Will Expire within next 120 days.."
New column Name: Message10
Value in Column: "71  Days Left"
New Column Name: Message2  
Value in Column: "Certificate CN=*.eas.xmcxxxare.com, OU=Domain Control Validated Will Expire within next 120 days."
New column Name: Message20
Value in Column: "85  Days Left"
New Column Name: Message3  
Value in Column: "Certificate CN=*.eas.xmcxxxare.com, OU=Domain Control Validated Will Expire within next 120 days."
New column Name: Message30
Value in Column: "85  Days Left"

0 个答案:

没有答案