一次向数据库中添加N条相同数据

来源:互联网 发布:知足知不足的阅读答案 编辑:程序博客网 时间:2024/04/20 03:24

declare @a as int


   set @a=1


   while(@a<=100)


   begin


    insert  into 表名 values('1','1','1','1')


     set @a=@a+1


     if @a>100


     break
     else
     continue
     end
0 0