Oracle数据库建表语句

Oracle数据库建表语句

#1.建表语句

create table CUST_INFO
(
   CUST_ID                    VARCHAR(36)      not null,
   CUST_TYPE                  VARCHAR(50),
   CUST_NAME                  VARCHAR(200),
   ID_NO                      VARCHAR(20),
   ADDE                       VARCHAR(20),
   constraint P_ID primary key (CUST_ID)
);

#2.添加字段注释

comment on column LPB_LETTER_HIS.CUST_ID is '客户编号';
comment on column LPB_LETTER_HIS.CUST_NAME is '客户类型';
comment on column LPB_LETTER_HIS.LOAN_ACTV_MONTH is '客户名称';
comment on column LPB_LETTER_HIS.FEE_AMT_TOTAL is '证件号码';
comment on column LPB_LETTER_HIS.LETTER_STS is '地址';

你可能感兴趣的:(数据库,日常小经验)