建立資料表例子
阿新 • • 發佈:2018-11-24
--建立資料表 create table biz_data_chg ( serno varchar2(32 byte) not null, mod_type varchar2(2 byte), loan_fee_no varchar2(32 byte), loan_no varchar2(32 byte), nper number(1), fee_type char(2 byte), charge_amt_old number(16,2), charge_amt number(16,2), chg_desc varchar2(2000 byte), chg_status varchar2(2 byte), input_id varchar2(10 byte), input_br_id varchar2(20 byte), cus_manager varchar2(10 byte), main_br_id varchar2(20 byte), last_mod_user varchar2(10 byte), last_mod_time varchar2(20 byte), constraint biz_data_chg primary key (serno) ); comment on table biz_data_chg is '業務資料修改'; comment on column biz_data_chg.serno is '流水號'; comment on column biz_data_chg.mod_type is '修改型別'; comment on column biz_data_chg.loan_fee_no is '收費編號'; comment on column biz_data_chg.loan_no is '放款編號'; comment on column biz_data_chg.nper is '期數'; comment on column biz_data_chg.fee_type is '費用型別'; comment on column biz_data_chg.charge_amt_old is '修改前收費金額'; comment on column biz_data_chg.charge_amt is '收費金額'; comment on column biz_data_chg.chg_desc is '修改描述'; comment on column biz_data_chg.chg_status is '修改狀態'; comment on column biz_data_chg.input_id is '登陸人'; comment on column biz_data_chg.input_br_id is '登陸機構'; comment on column biz_data_chg.cus_manager is '申請人'; comment on column biz_data_chg.main_br_id is '申請機構'; comment on column biz_data_chg.last_mod_user is '最後修改人'; comment on column biz_data_chg.last_mod_time is '最後修改時間';
--刪除資料表
drop table users;