SqlServer插入1000条记录
SqlServer插入1000条记录
1、想在SqlServer中插入指定数量的测试记录怎么办?
2、解决:
DECLARE @var INT
SET @var=0
WHILE (@var<1000)
BEGIN
INSERT INTO test (Name) VALUES (convert(VARCHAR(max), getdate()));
SET @var=@var+1
END
SqlServer插入1000条记录
https://www.dearcloud.cn/2016/07/29/20200310-cnblogs-old-posts/20160729-SqlServer插入1000条记录/