数据库批量操作
上一篇 /
下一篇 2014-11-19 18:11:22
批量新增
declare @a int
set @a=15
while (@a<63)
begin
insert into DeviceGroup values (@a+1,'群8','','0','1','108','','集中器01','2014-11-19 11:29:45')
set @a=@a+1
end
批量更新
declare @a int
set @a=0
while(@a<63)
begin
update DeviceGroup set devicegroupname=@a+1 where devicegroupnum=@a+1
set @a=@a+1
end
参考路径:http://blog.csdn.net/chinmo/article/details/2184020
收藏
举报
TAG: