批量插入数据SQL语句

-- Sqlserver 2014
-- 2018.7.12
-- Xi'an


declare @index int
set @index=1
while @index<=100
begin
insert into Address(Street,CityId)
values(CAST(@index as nvarchar),'1')
set @index=@index+1
end

猜你喜欢

转载自www.cnblogs.com/kkx5211/p/9298101.html