365bet亚洲版登录-bet官网365入口

365bet亚洲版登录拥有超过百间客房,bet官网365入口的文化历经几十年的传承和积淀形成的核心内容获得业界广泛的认可,365bet亚洲版登录是目前信誉最高的娱乐场所,同国内外几百家网上内容供应商建立了合作关系。

快速生成扩展表默认数据的脚本

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;

本文由365bet亚洲版登录发布于数据库,转载请注明出处:快速生成扩展表默认数据的脚本

您可能还会对下面的文章感兴趣: