hidp3.0 sql

简介:
/*==============================================================*/ 
/* DBMS name:      ORACLE Version 10g                           */ 
/* Created on:     2010-10-13 14:56:47                          */ 
/*==============================================================*/ 


alter table "F_FormData" 
   drop constraint FK_F_FORMDA_RELATIONS_F_CUSTOM; 

alter table "F_Opinion" 
   drop constraint FK_F_OPINIO_RELATIONS_F_CUSTOM; 

alter table "F_WorkFlowForm" 
   drop constraint FK_F_WORKFL_RELATIONS_F_CUSTOM; 

drop table "F_CustomForm" cascade constraints; 

drop index "Relationship_2_FK"; 

drop table "F_FormData" cascade constraints; 

drop index "Relationship_1_FK"; 

drop table "F_Opinion" cascade constraints; 

drop table "F_ProcessFile" cascade constraints; 

drop index "Relationship_3_FK"; 

drop table "F_WorkFlowForm" cascade constraints; 

/*==============================================================*/ 
/* Table: "F_CustomForm"                                        */ 
/*==============================================================*/ 
create table "F_CustomForm"  ( 
   "fid"                VARCHAR2(32)                    not null, 
   "formname"           VARCHAR2(20)                    not null, 
   "formpath"           VARCHAR2(100)                   not null, 
   "createtime"         DATE                            not null, 
   "creater"            VARCHAR2(20)                    not null, 
   "formcontent"        VARCHAR2(200)                   not null, 
   constraint PK_F_CUSTOMFORM primary key ("fid") 
); 

/*==============================================================*/ 
/* Table: "F_FormData"                                          */ 
/*==============================================================*/ 
create table "F_FormData"  ( 
   "did"                VARCHAR2(32)                    not null, 
   "fid"                VARCHAR2(32), 
   "datatype"           VARCHAR2(100)                   not null, 
   "dataname"           VARCHAR2(20)                    not null, 
   "datavalue"          VARCHAR2(20), 
   "piid"               VARCHAR2(32)                    not null, 
   constraint PK_F_FORMDATA primary key ("did") 
); 

/*==============================================================*/ 
/* Index: "Relationship_2_FK"                                   */ 
/*==============================================================*/ 
create index "Relationship_2_FK" on "F_FormData" ( 
   "fid" ASC 
); 

/*==============================================================*/ 
/* Table: "F_Opinion"                                           */ 
/*==============================================================*/ 
create table "F_Opinion"  ( 
   "oid"                VARCHAR2(32)                    not null, 
   "fid"                VARCHAR2(32), 
   "creater"            VARCHAR2(20)                    not null, 
   "createtime"         DATE                            not null, 
   "context"            VARCHAR2(200), 
   "piId"               VARCHAR2(32), 
   constraint PK_F_OPINION primary key ("oid") 
); 

/*==============================================================*/ 
/* Index: "Relationship_1_FK"                                   */ 
/*==============================================================*/ 
create index "Relationship_1_FK" on "F_Opinion" ( 
   "fid" ASC 
); 

/*==============================================================*/ 
/* Table: "F_ProcessFile"                                       */ 
/*==============================================================*/ 
create table "F_ProcessFile"  ( 
   "id"                 VARCHAR2(32)                    not null, 
   "processfielname"    VARCHAR2(20)                    not null, 
   "path"               VARCHAR2(100), 
   "processfilesate"    VARCHAR2(2)                     not null, 
   "workflowid"         VARCHAR2(32), 
   constraint PK_F_PROCESSFILE primary key ("id") 
); 

/*==============================================================*/ 
/* Table: "F_WorkFlowForm"                                      */ 
/*==============================================================*/ 
create table "F_WorkFlowForm"  ( 
   "wfid"               VARCHAR2(32)                    not null, 
   "fid"                VARCHAR2(32), 
   "workflowid"         VARCHAR2(32)                    not null, 
   constraint PK_F_WORKFLOWFORM primary key ("wfid") 
); 

/*==============================================================*/ 
/* Index: "Relationship_3_FK"                                   */ 
/*==============================================================*/ 
create index "Relationship_3_FK" on "F_WorkFlowForm" ( 
   "fid" ASC 
); 

alter table "F_FormData" 
   add constraint FK_F_FORMDA_RELATIONS_F_CUSTOM foreign key ("fid") 
      references "F_CustomForm" ("fid"); 

alter table "F_Opinion" 
   add constraint FK_F_OPINIO_RELATIONS_F_CUSTOM foreign key ("fid") 
      references "F_CustomForm" ("fid"); 

alter table "F_WorkFlowForm" 
   add constraint FK_F_WORKFL_RELATIONS_F_CUSTOM foreign key ("fid") 
      references "F_CustomForm" ("fid"); 
相关文章
|
3月前
|
SQL 存储 关系型数据库
什么是SQL?
什么是SQL?
24 0
|
2月前
|
SQL 存储 关系型数据库
sql日常总结
sql日常总结
|
2月前
|
SQL 数据库 索引
SQL常用知识
SQL常用知识
|
SQL
sql last
sql last
46 0
|
存储 SQL NoSQL
SQL必知必会(一)
对于我们而言,数据库是一个以某种有组织的方式存储的数据集合。最简单的办法就是将数据库想象成一个文件柜。这个文件柜是一个存放数据的物理位置,不管数据是什么,也不管数据是如何组织的。 数据库(DataBase) 保存有组织数据的容器(通常为一个或一组文件)
|
存储 SQL 数据库
SQL必知必会(二)
表中的数据都是按行来存储的,所保存的每个记录存储在自己的行内。如果将表想象为网格,网格中垂直的列为表列,水平行为表行。
|
SQL 存储 搜索推荐
几个SQL问题
几个SQL问题
115 0
|
SQL
SQL日常
SQL日常
98 0
|
SQL
xttcnvrtbkupdest.sql
---- Convert the incremental backup (target convert) -- Inputs: cross-plaform backups set serveroutput on;set termout on;set verify off; DE...
814 0
|
SQL 数据库 关系型数据库
SQL
SQL查询优先级() not and or SQL模糊查询 '%a' //以a结尾的数据'a%' //以a开头的数据'%a%' //含有a的数据'_a_' //三位且中间字母是a的'_a' //两位且结尾字母是a的'a_' /.
962 0