43 lines
1.5 KiB
MySQL
43 lines
1.5 KiB
MySQL
|
DROP TABLE CAR_DEALER_ACHIEVEMENT;
|
|||
|
-- Create table
|
|||
|
create table CAR_DEALER_ACHIEVEMENT
|
|||
|
(
|
|||
|
the_year VARCHAR2(4),
|
|||
|
the_month VARCHAR2(2),
|
|||
|
car_dealer_code VARCHAR2(20),
|
|||
|
checked_achievement NUMBER(16,2),
|
|||
|
policy_amount INTEGER,
|
|||
|
cpic_amount INTEGER,
|
|||
|
picc_amount INTEGER,
|
|||
|
pingan_amount INTEGER,
|
|||
|
others_amount INTEGER
|
|||
|
)
|
|||
|
tablespace CAR_DEALER;
|
|||
|
-- Add comments to the table
|
|||
|
comment on table CAR_DEALER_ACHIEVEMENT
|
|||
|
is '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|||
|
-- Add comments to the columns
|
|||
|
comment on column CAR_DEALER_ACHIEVEMENT.the_year
|
|||
|
is 'ͳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|||
|
comment on column CAR_DEALER_ACHIEVEMENT.the_month
|
|||
|
is 'ͳ<EFBFBD><EFBFBD><EFBFBD>·<EFBFBD>';
|
|||
|
comment on column CAR_DEALER_ACHIEVEMENT.car_dealer_code
|
|||
|
is '<EFBFBD><EFBFBD><EFBFBD>̴<EFBFBD><EFBFBD><EFBFBD>';
|
|||
|
comment on column CAR_DEALER_ACHIEVEMENT.checked_achievement
|
|||
|
is '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>˫ǩ<EFBFBD><EFBFBD>ֵ';
|
|||
|
comment on column CAR_DEALER_ACHIEVEMENT.policy_amount
|
|||
|
is '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>³<EFBFBD><EFBFBD><EFBFBD>Ʊ<EFBFBD><EFBFBD>';
|
|||
|
comment on column CAR_DEALER_ACHIEVEMENT.cpic_amount
|
|||
|
is '̫ƽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>³<EFBFBD>ǩ<EFBFBD><EFBFBD>̨<EFBFBD><EFBFBD>';
|
|||
|
comment on column CAR_DEALER_ACHIEVEMENT.picc_amount
|
|||
|
is '<EFBFBD>й<EFBFBD><EFBFBD>˱<EFBFBD><EFBFBD>³<EFBFBD>ǩ<EFBFBD><EFBFBD>̨<EFBFBD><EFBFBD>';
|
|||
|
comment on column CAR_DEALER_ACHIEVEMENT.pingan_amount
|
|||
|
is '<EFBFBD>й<EFBFBD>ƽ<EFBFBD><EFBFBD><EFBFBD>³<EFBFBD>ǩ<EFBFBD><EFBFBD>̨<EFBFBD><EFBFBD>';
|
|||
|
comment on column CAR_DEALER_ACHIEVEMENT.others_amount
|
|||
|
is '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>չ<EFBFBD>˾<EFBFBD>³<EFBFBD>ǩ<EFBFBD><EFBFBD>̨<EFBFBD><EFBFBD>';
|
|||
|
-- Create/Recreate indexes
|
|||
|
create index CAR_DEALER_ACHIEVEMENT_IDX01 on CAR_DEALER_ACHIEVEMENT (THE_YEAR, THE_MONTH, CAR_DEALER_CODE)
|
|||
|
tablespace CAR_DEALER_IDX;
|
|||
|
-- Grant/Revoke object privileges
|
|||
|
grant select on CAR_DEALER_ACHIEVEMENT to DATACENTER;
|