create table first_table
  of MDSYS.AGGRMBR
  tablespace EXAMPLE
  storage
  (
    initial 64K
    minextents 1
    maxextents unlimited
  );  其中  of MDSYS.AGGRMBR 是干什么用的呀

解决方案 »

  1.   


    SQL> create   or   replace   type   bartype   as   object(
      2        name   varchar2(20),
      3        addr   varchar2(20)
      4   );
      5  /Type createdSQL> create   table   Bars   of   BarType;Table createdSQL> desc bars;
    Name Type         Nullable Default Comments 
    ---- ------------ -------- ------- -------- 
    NAME VARCHAR2(20) Y                         
    ADDR VARCHAR2(20) Y                         SQL> MDSYS.AGGRMBR 只是oracle 自带的一种特殊类型。
    也可以自己创建type,然后再创建该类型的表
      

  2.   


    高手就是高手1\alter table SECOND_TABLE
      add constraint first1 primary key ();为什么我不能在first1上创建主键2\ v$ 这个符号是干什么用的呀
      

  3.   

    alter table SECOND_TABLE add constrarnt PK_FIRST1 primary key (first1)以v$开头的是数据字典的动态视图.
    表态视图一般是以DBA_,USER_,ALL_开头