telsale-management/代码/oracle/建表/电网销转介绍清单表.sql

19 lines
698 B
MySQL
Raw Normal View History

2018-06-21 06:39:11 +00:00
DROP TABLE telsale_oper_lst;
CREATE TABLE telsale_oper_lst
(
policy_no VARCHAR2(20) PRIMARY KEY,
operator_code VARCHAR2(6) NOT NULL,
operator_name VARCHAR2(100 CHAR) NOT NULL,
section_office_code VARCHAR2(6) NOT NULL,
section_office_name VARCHAR2(100 CHAR) NOT NULL,
department_code VARCHAR2(6),
department_name VARCHAR2(100 CHAR),
autotrader_code VARCHAR2(30), --<EFBFBD><EFBFBD><EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>
insruant_name VARCHAR2(200 CHAR), --<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
plate_no VARCHAR2(7 CHAR), --<EFBFBD><EFBFBD><EFBFBD>ƺ<EFBFBD>
entry_staff_code VARCHAR2(6) NOT NULL,
entry_date DATE DEFAULT SYSDATE
);
CREATE INDEX telsale_oper_lst_i ON telsale_oper_lst(POLICY_NO,operator_code);