当前位置: 代码迷 >> Oracle管理 >> oracle触发器 示意 搞不定
  详细解决方案

oracle触发器 示意 搞不定

热度:476   发布时间:2016-04-24 04:51:53.0
oracle触发器 表示 搞不定啊
建表


/*==============================================================*/
/* Table: CUSTOMER                                              */
/*==============================================================*/
create table CUSTOMER  (
   "custid"             VARCHAR2(10)                    not null,
   "custname"           VARCHAR2(22),
   "custadd"            VARCHAR2(20),
   "custphone"          VARCHAR2(12),
   "custfax"            VARCHAR2(12),
   constraint PK_CUSTOMER primary key ("custid")
)
/

/*==============================================================*/
/* Table: ORD                                                   */
/*==============================================================*/
create table ORD  (
   "ordid"              VARCHAR2(10)                    not null,
   "custid"             VARCHAR2(10),
   "orddate"            DATE,
   "d_date"             DATE,
   constraint PK_ORD primary key ("ordid"),
   constraint FK_ORD_FK_ORD_CU_CUSTOMER foreign key ("custid")
         references CUSTOMER ("custid")
)
/

/*==============================================================*/
/* Table: PROSTOCK                                              */
/*==============================================================*/
create table PROSTOCK  (
   "proid"              VARCHAR2(10)                    not null,
   "proname"            VARCHAR2(20),
   "stiqty"             NUMBER(10)                     default 0,
   "insqty"             NUMBER(10)                     default 0,
  相关解决方案