求助:批量插入数据问题
需要插入大量数据,但是总在红色哪一行报语法错误declare @i int
declare @count int
declare @rand int
set @count=1
set @i=1
while @i<=300000
begin
set @rand=(select cast( floor(rand()*N) as int)
insert into dbo.db_10000_SLC(Sno,Sdept,Sloe) values(@count,@rand%4,@rand);
set @count=@count+1
set @i=@i+1
end