declare @total int;
declare @count int;
set @count=0;
SELECT @total=COUNT(1) FROM TB_JJ;

create table #T
(
  rid int PRIMARY KEY,
  sys_guid NVARCHAR(40)
);
INSERT INTO #T SELECT ROW_NUMBER() over (order by sys_guid) as rid,sys_guid FROM TB_JJ;
WHILE @count<@total BEGIN set @count=@count+10000; INSERT INTO TB_JJ_Info(sys_guid) SELECT sys_guid FROM #T where rid<=@count; DELETE FROM #T where rid<=@count; END DROP TABLE #T;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2021-04-12
猜你喜欢
  • 2021-09-04
  • 2021-10-02
  • 2022-03-10
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2021-06-21
相关资源
相似解决方案