日期:2014-05-17  浏览次数:20824 次

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)                     de