快速生成测试数据脚本

create TABLE Test_Table as 
select 
	rownum id,
	floor(dbms_random.value(0,3))   sex,
	dbms_random.string('A',6)  name,
	111311198305100988 + floor(dbms_random.value(0,811311198305100988))  id_card,
	'0'||floor(dbms_random.value(1000000001,80000000000))  house_phone,
	10000000000 + floor(dbms_random.value(3111111111,3999999999))  mobile,
	'0'||floor(dbms_random.value(1000000001,80000000000))  fax,
	''||floor(dbms_random.value(100001,999999))  post_code,
	dbms_random.string('L',6)||'@'||dbms_random.string('L',4)||'.com'  email,
	floor(dbms_random.value(10000001,999999999))  qq,
	dbms_random.string('L',16)  addr,
	sysdate-floor(dbms_random.value(1,80))  birth_day, 
	floor(dbms_random.value(0,5))  occupation,
	floor(dbms_random.value(0,8))  fixed_assets,
	floor(dbms_random.value(0,3))  car_owner,
	sysdate-floor(dbms_random.value(1,60))  car_buy_time,
	dbms_random.string('L',5)  car_brand,
	dbms_random.string('L',5)  bui_name,
	floor(dbms_random.value(5,500))  car_price,
  floor(dbms_random.value(80,300))  bui_area_count,
  dbms_random.string('L',10)  bui_addr,
  ''||floor(dbms_random.value(100001,999999))  bui_post,
  dbms_random.string('L',10)  bui_manager,
  dbms_random.string('L',10)  bui_developer
from dual
connect by level <= 1000000;

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值