|
楼主 |
发表于 2018-7-31 15:57:06
|
显示全部楼层
我的原始表都是c_开始的 由于平台支持不好 现在我都是自己写建表语句将c_改为tqp_生成空表 我数据库的表都是tqp_
CREATE TABLE "JEECG3"."TQP_QTYSTD_NK" (
"ID" VARCHAR2(32 BYTE) NOT NULL ,
"CREATE_NAME" VARCHAR2(50 BYTE) NULL ,
"CREATE_BY" VARCHAR2(50 BYTE) NULL ,
"CREATE_DATE" DATE NULL ,
"UPDATE_NAME" VARCHAR2(50 BYTE) NULL ,
"UPDATE_BY" VARCHAR2(50 BYTE) NULL ,
"UPDATE_DATE" DATE NULL ,
"SYS_ORG_CODE" VARCHAR2(50 BYTE) NULL ,
"SYS_COMPANY_CODE" VARCHAR2(50 BYTE) NULL ,
"RID" VARCHAR2(32 BYTE) NOT NULL ,
"TQP_GB_STD_CODE" VARCHAR2(60 BYTE) NOT NULL ,
"TQP_GB_STD_NAME" VARCHAR2(100 BYTE) NULL ,
"TQP_GB_STL_GRD" VARCHAR2(60 BYTE) NULL ,
"TQP_NK_STD_CODE" VARCHAR2(60 BYTE) NOT NULL ,
"TQP_NK_STD_NAME" VARCHAR2(100 BYTE) NULL ,
"TQP_VERSION" NUMBER(5) NOT NULL ,
"TQP_STATUS" VARCHAR2(1 BYTE) NOT NULL ,
"TQP_NK_STL_GRD" VARCHAR2(60 BYTE) NULL ,
"TQP_PROD_KIND" VARCHAR2(50 BYTE) NULL ,
"TQP_PROD_NAME" VARCHAR2(50 BYTE) NULL ,
"TQP_STD_NM_CH" VARCHAR2(150 BYTE) NULL ,
"TQP_STD_NM_EN" VARCHAR2(150 BYTE) NULL ,
"TQP_ASSO_CODE" VARCHAR2(20 BYTE) NULL ,
"TQP_KEY_TOL_STD_CODE" VARCHAR2(20 BYTE) NULL ,
"TQP_KEY_SPETQP_CODE" VARCHAR2(20 BYTE) NULL ,
"TQP_KEY_SMP_STD_CODE" VARCHAR2(20 BYTE) NULL ,
"TQP_PUB_YEAR" VARCHAR2(20 BYTE) NULL ,
"TQP_CTRL_TYPE" VARCHAR2(1 BYTE) NULL ,
"TQP_ERP_STL_GRD" VARCHAR2(100 BYTE) NULL ,
"TQP_MOD_DT" VARCHAR2(32 BYTE) NULL ,
"TQP_REMARK" VARCHAR2(500 BYTE) NULL ,
"TQP_USE" VARCHAR2(100 BYTE) NULL ,
"TQP_FLAG" VARCHAR2(1 BYTE) NULL ,
"TQP_FLAG_DESC" VARCHAR2(20 BYTE) NULL ,
"TQP_VERTIME" VARCHAR2(20 BYTE) NULL
)
LOGGING
NOCOMPRESS
NOCACHE
;
COMMENT ON TABLE "JEECG3"."TQP_QTYSTD_NK" IS '质量标准-内控';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."ID" IS '主键';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."CREATE_NAME" IS '创建人名称';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."CREATE_BY" IS '创建人登录名称';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."CREATE_DATE" IS '创建日期';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."UPDATE_NAME" IS '更新人名称';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."UPDATE_BY" IS '更新人登录名称';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."UPDATE_DATE" IS '更新日期';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."SYS_ORG_CODE" IS '所属部门';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."SYS_COMPANY_CODE" IS '所属公司';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."RID" IS '真实id';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_GB_STD_CODE" IS '国标代码';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_GB_STD_NAME" IS '国标描述';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_GB_STL_GRD" IS '标准钢种/外部牌号';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_NK_STD_CODE" IS '内控标准代码';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_NK_STD_NAME" IS '内控标准描述';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_VERSION" IS '版本号';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_STATUS" IS '数据状态:0-失效;1-生效'; Q_P_Status
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_NK_STL_GRD" IS '内控钢种/子钢号';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_PROD_KIND" IS '品种';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_PROD_NAME" IS '品名';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_STD_NM_CH" IS '标准名称 标准名称(中)';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_STD_NM_EN" IS '标准名称 标准名称(英)';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_ASSO_CODE" IS '标准协会代码';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_KEY_TOL_STD_CODE" IS '公差标准PK';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_KEY_SPETQP_CODE" IS '制造规范PK';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_KEY_SMP_STD_CODE" IS '取样标准PK';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_PUB_YEAR" IS '发布年度';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_CTRL_TYPE" IS '控制类型:0-全不控制;1-全控制;2-成分控制;3-性能控制;'; Q_P_CTRLType
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_ERP_STL_GRD" IS 'ERP钢种';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_MOD_DT" IS '录入时间';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_REMARK" IS '备注';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_USE" IS '用途';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_FLAG" IS '审批状态';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_FLAG_DESC" IS '状态描述:0-待编制;1-待审核;2-待批准;3-已批准';
COMMENT ON COLUMN "JEECG3"."TQP_QTYSTD_NK"."TQP_VERTIME" IS '版次';
-- ----------------------------
-- Indexes structure for table TQP_QTYSTD_NK
-- ----------------------------
-- ----------------------------
-- Checks structure for table TQP_QTYSTD_NK
-- ----------------------------
ALTER TABLE "JEECG3"."TQP_QTYSTD_NK" ADD CHECK ("ID" IS NOT NULL);
ALTER TABLE "JEECG3"."TQP_QTYSTD_NK" ADD CHECK ("TQP_GB_STD_CODE" IS NOT NULL);
ALTER TABLE "JEECG3"."TQP_QTYSTD_NK" ADD CHECK ("TQP_NK_STD_CODE" IS NOT NULL);
ALTER TABLE "JEECG3"."TQP_QTYSTD_NK" ADD CHECK ("TQP_VERSION" IS NOT NULL);
ALTER TABLE "JEECG3"."TQP_QTYSTD_NK" ADD CHECK ("TQP_STATUS" IS NOT NULL);
-- ----------------------------
-- Primary Key structure for table TQP_QTYSTD_NK
-- ----------------------------
ALTER TABLE "JEECG3"."TQP_QTYSTD_NK" ADD PRIMARY KEY ("ID");
我的建表语句 |
|