1 function Split(szFullString, szSeparator) 2 local nFindStartIndex = 1 3 local nSplitIndex = 1 4 local nSplitArray = {} 5 while true do 6 local nFindLastIndex = string.find(szFullString, szSeparator, nFindStartIndex) 7 if not nFindLastIndex then 8 n
非常非常常用的一个函数Split字符串分割函数. Dim myTest myTest = "aaa/bbb/ccc/ddd/eee/fff/ggg" Dim arrTest arrTest = Split(myTest , "/" , -1 , 1) Dim i For i = 0 to ubound(arrTest) print "arrTest(" & i & ") = " & arrTest(i)
SQL Server Split函数 --说明: --支持分割符多字节 --使用方法 --Select * FROM DBO.F_SQLSERVER_SPLIT('1203401230105045','0') --select * from DBO.F_SQLSERVER_SPLIT('abc1234a12348991234','1234') --Select * from DBO.F_SQLSERVER_SPLIT('ABC',',') ALTER FUNCTION [dbo].[F_SQLS