摘要: 批量插入测试数据:定义变量,执行循环,将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 阅读全文
posted @ 2012-11-05 21:43 齐_大圣 阅读(758) 评论(0) 推荐(0) 编辑