梦幻之旅

DEBUG - 天道酬勤

   :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  671 随笔 :: 6 文章 :: 256 评论 :: 0 Trackbacks
// 随机生成测试数据
update es_sms_customer set 
       sex
=floor(dbms_random.value(0,3)) 
       ,name
=dbms_random.string('A',6)
       ,id_card
=111311198305100988 + floor(dbms_random.value(0,811311198305100988))
       ,house_phone
='0'||floor(dbms_random.value(1000000001,80000000000))
       ,mobile
=10000000000 + floor(dbms_random.value(3111111111,3999999999))
       ,fax
='0'||floor(dbms_random.value(1000000001,80000000000))
       ,post_code
=''||floor(dbms_random.value(100001,999999))
       ,email
=dbms_random.string('L',6)||'@'||dbms_random.string('L',4)||'.com'
       ,qq
=floor(dbms_random.value(10000001,999999999))
       ,addr
=dbms_random.string('L',16)
       ,birth_day
=birth_day+365*floor(dbms_random.value(1,50))
       ,occupation
=floor(dbms_random.value(0,5))
       ,fixed_assets
=floor(dbms_random.value(0,8))
       ,car_owner
=floor(dbms_random.value(0,3))
       ,car_buy_time
=birth_day+365*floor(dbms_random.value(1,50))
       ,car_brand
=dbms_random.string('L',5)
       ,bui_name
=dbms_random.string('L',5)
       ,car_price
=floor(dbms_random.value(5,500))
       ,bui_area_count
=floor(dbms_random.value(80,300))
       ,bui_addr
=dbms_random.string('L',10)
       ,bui_post
=''||floor(dbms_random.value(100001,999999))
       ,bui_manager
=dbms_random.string('L',10)
       ,bui_developer
=dbms_random.string('L',10)
       
where rownum<1000;
posted on 2011-01-16 22:02 HUIKK 阅读(485) 评论(0)  编辑  收藏 所属分类: DataBase

只有注册用户登录后才能发表评论。


网站导航: