SQL Server ???????????????
???????????? ???????[ 2015/5/29 14:03:16 ] ?????????????
???????????????????????????????????????????е??????????????
????1 create function Func_SplitStr(@SourceSql varchar(8000)?? @StrSeprate varchar(100))
????2 returns @temp table(F1 varchar(100))
????3 as
????4 begin
????5 declare @ch as varchar(100)
????6 set @SourceSql=@SourceSql+@StrSeprate
????7 while(@SourceSql<>'')
????8 begin
????9 set @ch=left(@SourceSql??charindex('??'??@SourceSql??1)-1)
????10 insert @temp values(@ch)
????11 set @SourceSql=stuff(@SourceSql??1??charindex('??'??@SourceSql??1)??'')
????12 end
????13 return
????14 end
????15 go
????----????
????select * from dbo.Func_SplitStr('1??2??3??4'??'??')
????--?????
????1
????2
????3
????4
????????????????????????
????1 create function Func_SplitStr(@str nvarchar(2000)??@split nvarchar(2))
????2 returns @t table(AccountCodeID int )
????3 as
????4 begin
????5 declare @tmpAccountCodeID int??@getIndex int
????6 set @getIndex=charindex('??'??@str)
????7 while(@getIndex<>0)
????8 begin
????9 set @tmpAccountCodeID=convert(int??substring(@str??1??@getIndex-1))
????10 insert into @t(AccountCodeID) values (@tmpAccountCodeID)
????11 set @str=stuff(@str??1??@getIndex??'')
????12 set @getIndex=charindex('??'??@str)
????13 end
????14 insert into @t(AccountCodeID) values (@str)
????15 return
????16 end
????17 go
????----????
????select * from dbo.Func_SplitStr('1??2??3??4'??'??')
????--?????
????1
????2
????3
????4
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
???????sql server 2000??????????????SQL Server???????????????????λ?????SQL Server??????????????????????????????SQL Server??Azure SQL??SQL SERVER ?????????????汾??????SQL Server??WITH (NOLOCK)SQL Server??????????????DML??????????SQL Server????????????????????SQL Server??????SQL Server???????????Ч?????????SQL Server?????????????????SQL Server?????????????????SQL Server????????SQL SERVER????????SQL Server????δ???????SQL SERVER??????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????