如題
高手幫幫忙
謝了~!!

解决方案 »

  1.   

    create table DIM_A
    (
      ID   NUMBER not null,
      NAME VARCHAR2(30)
    )alter table DIM_A
      add primary key (ID)
      using index 
      tablespace ITDATA
      pctfree 10
      initrans 2
      maxtrans 255
      storage
      (
        initial 64K
        minextents 1
        maxextents unlimited
      );
    create table FACT
    (
      ID  NUMBER,
      AID NUMBER,
      BID NUMBER,
      NUM NUMBER
    )alter table FACT
      add constraint FK_FACT_AID foreign key (AID)
      references DIM_A (ID);