分享到: 百度 更多

用存储过程在数据库中批量插入数据1w条

Create proc Sp_Test
As     --易漏
Begin
Declare @Count Int
set @Count =0
while (@count <10000)
Begin
Insert into dbo.Users
values ('will','123')
set @Count =@Count +1
End
End

  

posted @ 2013-04-17 19:44  黑马_Summer  阅读(350)  评论(0编辑  收藏  举报
分享到: 百度 更多