📄 crebas.sql
字号:
/*==============================================================*/
/* DBMS name: ORACLE Version 10gR2 */
/* Created on: 2008-9-6 11:59:44 */
/*==============================================================*/
alter table "Entity_4"
drop constraint FK_ENTITY_4_REL;
alter table "Entity_4"
drop constraint FK_ENTITY_4_RE2;
alter table "Entity_5"
drop constraint FK_ENTITY_5_REL;
alter table "Entity_5"
drop constraint FK_ENTITY_5_RE2;
alter table 测评内容信息表
drop constraint FK_测评内容信息表_RELA;
alter table 测评内容得分表
drop constraint FK_测评内容得分表_RELA;
alter table 测评内容得分表
drop constraint FK_测评内容得分表_REL2;
alter table 测评指标信息表
drop constraint FK_测评指标信息表_RELA;
alter table 测评指标得分表
drop constraint FK_测评指标得分表_RELA;
alter table 测评指标得分表
drop constraint FK_测评指标得分表_REL2;
alter table 测评标准是否合格信息表
drop constraint FK_测评标准是否合格_REL;
alter table 测评标准是否合格信息表
drop constraint FK_测评标准是否合格_RE2;
alter table 测评标准详细表
drop constraint FK_测评标准详细表_RELA;
alter table 测评项目得分表
drop constraint FK_测评项目得分表_RELA;
alter table 测评项目得分表
drop constraint FK_测评项目得分表_REL2;
alter table 浮动指标得分表
drop constraint FK_浮动指标得分表_RELA;
alter table 浮动指标得分表
drop constraint FK_浮动指标得分表_REL2;
alter table 用户信息表
drop constraint FK_用户信息表_RELATI;
alter table 选项信息表
drop constraint FK_选项信息表_RELATI;
alter table 问卷统计信息表
drop constraint FK_问卷统计信息表_RELA;
alter table 问卷试题信息表
drop constraint FK_问卷试题信息表_RELA;
drop index "Relationship_4_FK";
drop index "Relationship_3_FK";
drop table "Entity_4" cascade constraints;
drop index "Relationship_2_FK";
drop index "Relationship_1_FK";
drop table "Entity_5" cascade constraints;
drop table 测评内容信息表 cascade constraints;
drop index "Relationship_13_FK";
drop index "Relationship_12_FK";
drop table 测评内容得分表 cascade constraints;
drop table 测评单位信息表 cascade constraints;
drop index "Relationship_18_FK";
drop table 测评指标信息表 cascade constraints;
drop index "Relationship_11_FK";
drop index "Relationship_10_FK";
drop table 测评指标得分表 cascade constraints;
drop index "Relationship_17_FK";
drop index "Relationship_16_FK";
drop table 测评标准是否合格信息表 cascade constraints;
drop index "Relationship_20_FK";
drop table 测评标准详细表 cascade constraints;
drop index "Relationship_9_FK";
drop index "Relationship_8_FK";
drop table 测评项目得分表 cascade constraints;
drop table 测评项目的分 cascade constraints;
drop table 浮动指标信息表 cascade constraints;
drop index "Relationship_21_FK";
drop index "Relationship_15_FK";
drop table 浮动指标得分表 cascade constraints;
drop index "Relationship_5_FK";
drop table 用户信息表 cascade constraints;
drop table 用户角色信息表 cascade constraints;
drop index "Relationship_7_FK";
drop table 选项信息表 cascade constraints;
drop table 问卷信息表 cascade constraints;
drop index "Relationship_22_FK";
drop table 问卷统计信息表 cascade constraints;
drop index "Relationship_6_FK";
drop table 问卷试题信息表 cascade constraints;
/*==============================================================*/
/* Table: "Entity_4" */
/*==============================================================*/
create table "Entity_4" (
问卷编号 NUMBER not null,
测评单位编号 VARCHAR2(7) not null,
录入试卷数 NUMBER not null,
constraint PK_ENTITY_4 primary key (问卷编号, 测评单位编号)
);
/*==============================================================*/
/* Index: "Relationship_3_FK" */
/*==============================================================*/
create index "Relationship_3_FK" on "Entity_4" (
问卷编号 ASC
);
/*==============================================================*/
/* Index: "Relationship_4_FK" */
/*==============================================================*/
create index "Relationship_4_FK" on "Entity_4" (
测评单位编号 ASC
);
/*==============================================================*/
/* Table: "Entity_5" */
/*==============================================================*/
create table "Entity_5" (
问卷编号 NUMBER not null,
问卷题号 VARCHAR2(10) not null,
测评单位编号 VARCHAR2(7) not null,
选项 NUMBER not null,
constraint PK_ENTITY_5 primary key (问卷编号, 问卷题号, 测评单位编号)
);
/*==============================================================*/
/* Index: "Relationship_1_FK" */
/*==============================================================*/
create index "Relationship_1_FK" on "Entity_5" (
问卷编号 ASC,
问卷题号 ASC
);
/*==============================================================*/
/* Index: "Relationship_2_FK" */
/*==============================================================*/
create index "Relationship_2_FK" on "Entity_5" (
测评单位编号 ASC
);
/*==============================================================*/
/* Table: 测评内容信息表 */
/*==============================================================*/
create table 测评内容信息表 (
测评项目编号 VARCHAR2(50) not null,
测评指标标号 VARCHAR2(50) not null,
测评内容编号 VARCHAR2(50) not null,
测评内容 CLOB not null,
评分规则 CLOB not null,
constraint PK_测评内容信息表 primary key (测评项目编号, 测评指标标号)
);
/*==============================================================*/
/* Table: 测评内容得分表 */
/*==============================================================*/
create table 测评内容得分表 (
测评单位编号 VARCHAR2(7) not null,
测评项目编号 VARCHAR2(50) not null,
测评指标标号 VARCHAR2(50) not null,
测评内容得分 FLOAT not null,
constraint PK_测评内容得分表 primary key (测评单位编号, 测评项目编号, 测评指标标号)
);
/*==============================================================*/
/* Index: "Relationship_12_FK" */
/*==============================================================*/
create index "Relationship_12_FK" on 测评内容得分表 (
测评单位编号 ASC
);
/*==============================================================*/
/* Index: "Relationship_13_FK" */
/*==============================================================*/
create index "Relationship_13_FK" on 测评内容得分表 (
测评项目编号 ASC,
测评指标标号 ASC
);
/*==============================================================*/
/* Table: 测评单位信息表 */
/*==============================================================*/
create table 测评单位信息表 (
测评单位编号 VARCHAR2(7) not null,
测评单位名名称 VARCHAR2(60) not null,
测评单位助记码 VARCHAR2(40) not null,
测评总分 FLOAT,
constraint PK_测评单位信息表 primary key (测评单位编号)
);
/*==============================================================*/
/* Table: 测评指标信息表 */
/*==============================================================*/
create table 测评指标信息表 (
测评项目编号 VARCHAR2(50) not null,
测评指标标号 VARCHAR2(50) not null,
测评指标内容 CLOB not null,
constraint PK_测评指标信息表 primary key (测评项目编号, 测评指标标号)
);
/*==============================================================*/
/* Index: "Relationship_18_FK" */
/*==============================================================*/
create index "Relationship_18_FK" on 测评指标信息表 (
测评项目编号 ASC
);
/*==============================================================*/
/* Table: 测评指标得分表 */
/*==============================================================*/
create table 测评指标得分表 (
测评单位编号 VARCHAR2(7) not null,
测评项目编号 VARCHAR2(50) not null,
测评指标标号 VARCHAR2(50) not null,
测评指标得分 FLOAT not null,
constraint PK_测评指标得分表 primary key (测评单位编号, 测评项目编号, 测评指标标号)
);
/*==============================================================*/
/* Index: "Relationship_10_FK" */
/*==============================================================*/
create index "Relationship_10_FK" on 测评指标得分表 (
测评单位编号 ASC
);
/*==============================================================*/
/* Index: "Relationship_11_FK" */
/*==============================================================*/
create index "Relationship_11_FK" on 测评指标得分表 (
测评项目编号 ASC,
测评指标标号 ASC
);
/*==============================================================*/
/* Table: 测评标准是否合格信息表 */
/*==============================================================*/
create table 测评标准是否合格信息表 (
测评项目编号 VARCHAR2(50) not null,
测评指标标号 VARCHAR2(50) not null,
测评标准编号 VARCHAR2(50) not null,
测评单位编号 VARCHAR2(7) not null,
材料审核是否合格 SMALLINT not null,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -