MDA/MDD/TDD/DDD/DDDDDDD
          posts - 536, comments - 111, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          oracle處理數據的筆記

          Posted on 2009-05-12 22:26 leekiang 閱讀(276) 評論(0)  編輯  收藏 所屬分類: oracle
          1,create table tbA as select * from tbB
          ? 這樣會丟失索引等信息

          2,生成10萬條測試記錄表可以用如下SQL:
          ?create table myTestTable as
          select rownum as id,
          ?????????????? to_char(sysdate + rownum/24/3600, 'yyyy-mm-dd hh24:mi:ss') as inc_datetime,
          ?????????????? trunc(dbms_random.value(0, 100)) as random_id,
          ?????????????? dbms_random.string('x', 20) random_string
          ????????? from dual
          ??????? connect by level <= 100000;
          來源:http://blog.csdn.net/yzsind/archive/2009/12/08/4967133.aspx
          主站蜘蛛池模板: 沽源县| 油尖旺区| 门头沟区| 翁牛特旗| 醴陵市| 连山| 岳池县| 禹城市| 崇明县| 海宁市| 绥阳县| 稷山县| 岑巩县| 泰来县| 汉沽区| 沿河| 锡林郭勒盟| 长子县| 纳雍县| 沈阳市| 剑河县| 扎兰屯市| 汽车| 黔南| 增城市| 余庆县| 桐乡市| 呼图壁县| 那曲县| 长汀县| 岳池县| 海林市| 马龙县| 芦溪县| 洛扎县| 衡水市| 瑞金市| 赫章县| 余庆县| 德昌县| 中卫市|