首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

能不能写条语句在数据库里面写入多条记录 -为了配合.NET测试读取数据的效率解决办法

2012-01-21 
能不能写条语句在数据库里面写入多条记录 -----为了配合.NET测试读取数据的效率大家知道的话可以讨论讨论

能不能写条语句在数据库里面写入多条记录 -----为了配合.NET测试读取数据的效率
大家知道的话可以讨论讨论哦   ~~~欢迎

[解决办法]
1.
insert into table1(col1)
select '111 ' union
select '222 ' union
select '333 ' union
select '444 ' union
select '555 ' union
......


2.
declare @i int
set @i =1
while @i <= 10000
begin
insert into table1(col1) values(@i)
set @i = @i + 1
end

热点排行