zoukankan      html  css  js  c++  java
  • 生产百万级随机数

    百万级别数据批量生成:
    先创建视图:  
      -------------------------------------------------------------------------------------------------------

     create   view   v_rand   
      
    as   
              
    select   re=stuff(rtrim(cast(rand()   as   numeric(7,6))),1,2,'')   
      
    go 

    再创建函数:

    Code
    下面是执行SQL生成百万级随机数:P4 2.4 1G 内存的机子在 sql2000里面 生成100万 需要大概3分钟
    Code
    这个执行百万级方法来自
    http://www.cnblogs.com/adandelion/articles/542534.html
  • 相关阅读:
    bzoj2298 [HAOI2011]problem a
    P5504 [JSOI2011]柠檬
    洛谷P4383 [八省联考2018]林克卡特树
    [USACO17DEC]Standing Out from the Herd
    bzoj3926: [Zjoi2015]诸神眷顾的幻想乡
    dtoj4680. 红黑兔
    dtoj2099. 字符串查询( find)
    dtoj1721. 字符串生成器 ( strgen )
    dtoj4542. 「TJOI / HEOI2016」字符串
    loj2278. 「HAOI2017」字符串
  • 原文地址:https://www.cnblogs.com/zjba2/p/1541685.html
Copyright © 2011-2022 走看看