create proc sp_InsertSplite(@s text)asbegindeclare @str nvarchar(100)DECLARE CusCursor CURSOR FOR select col from dbo.f_splitStr(@s,';')OPEN CusCursorFETCH NEXT FROM CusCursor INTO @strWHILE (@@FETCH_STATUS = 0)BEGIN declare @start1 int,@start2 int declare @col1 varchar(50),@col2 nvarchar(50 Read More
DECLARE @MyCounter INTSET @MyCounter = 0 /*设置变量*/WHILE (@MyCounter < 1000000) /*设置循环次数*/BEGIN--WAITFOR DELAY '000:00:01' /*延迟时间10秒*/insert Test(TestValue) values(GETDATE())SET @MyCounter = @MyCounter + 1END Read More