摘要:
批量插入测试数据:定义变量,执行循环,将Int转化为Varchar。例:convert(varchar(50),@num)假设表Test(ID,Name,Password),批量插入1100000条数据declare @Name varchar(50)declare @Password varchar(50)declare @num intset @Password='123456'set @num=1while @num<1100000 begin set @Name='test'+convert(varchar(50),@num); insert in 阅读全文