我需要在sql中用斜杠标志解析一个字符串。我拥有的价值是这样的:
0041/PH 5PC0000001/WCHTKSKHDS0/D
我希望在一列中有0041,在第二列中我想要PH 5PC0000001和第三列WCHTKSKHDS0等等。但是,斜杠不是常数,在某些行中它们更多,而在某些行中它们更少,例如:像这样
PH/HCGA/002878//HTJ/, 0004/PH 5DI0000001/LTRKARDR/M /L.
提前感谢您的帮助。
答案 0 :(得分:1)
试试这样:
<h:commandLink onclick="{#{rich:component('viewPopupPanel')}.show();}" value="View">
<f:ajax execute="dat1" render=":viewForm:viewPopupPanel" listener="#{listingBean.viewAction(data)}"/>
</h:commandLink>
结果
Sub ParseTable()
Dim htm As Object: Set htm = CreateObject("htmlfile")
Dim tr As Object
With CreateObject("msxml2.xmlhttp")
.Open "GET", "http://pastebin.com/raw/BY51yHwd", False
.send
htm.body.innerHTML = .responseText
End With
For Each tr In htm.getElementsByTagName("tr")
If Len(tr.ID) > 0 Then MsgBox tr.ID ' msgbox the table row
Next tr
End Sub