日期:2014-05-16 浏览次数:20556 次
create table test ( c_id varchar2(40) default SYS_GUID(), c_name varchar2(40), --1 c_cid varchar2(40), c_password varchar2(40), --2 c_sex varchar2(40), --3 c_address varchar2(40), --4 c_truename varchar2(40), --5 c_company varchar2(40), --6 c_email varchar2(40), --7 c_field1 varchar2(40), --8 c_field2 varchar2(40), --9 c_field3 varchar2(40), --10 C_CRT_CDE varchar2(40),--11 C_CRT_DATE date default sysdate, --12 C_UPD_CDE varchar2(40), --13 C_UPD_DATE date default sysdate, --14 c_del varchar2(1) default '0'--15 )
create or replace procedure p_tb_test ( total in integer, cname in varchar2, --1 ccid in varchar2, cpassword in varchar2,--2 csex in varchar2, caddress in varchar2, ctruename in varchar2, --5 ccompany in varchar2, --6 cemail in varchar2, --7 cfield1 in varchar2, --8 cfield2 in varchar2, --9 cfield3 in varchar2, --10 CCRT_CDE in varchar2,--11 CUPD_CDE in varchar2 --13 ) AS uuid number := 1; begin loop insert into test (c_name, c_cid, c_password, c_sex, c_address, c_truename, c_company, c_email, c_field1, c_field2, c_field3, C_CRT_CDE, C_UPD_CDE ) values (cname||uuid, ccid||uuid, cpassword, csex, caddress, ctruename, ccompany, cemail, cfield1, cfield2, cfield3, CCRT_CDE, CUPD_CDE ); --commit; uuid := uuid + 1; exit when uuid >= total; end loop; end;
call(); -- 调用