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
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