use tempdb;
go
drop
table Test
go
Create
table
Test
(
A int identity primary key,
B NVARCHAR(50
))
insert
into Test(B)
values
('B')
go 50
--插入50条数据
不过和使用循环相比go N的效率要低很多,循环次数很大时还是使用循环为好。
use tempdb;
go
drop
table Test
go
Create
table
Test
(
A int identity primary key,
B NVARCHAR(50
))
insert
into Test(B)
values
('B')
go 50
--插入50条数据
不过和使用循环相比go N的效率要低很多,循环次数很大时还是使用循环为好。