1.  create  table testbase( 
  2. id number(10) not null primary key
  3. basename varchar2(20) not null
  4. address varchar2(50) default null
  5. basecode varchar2(30) default null
  6. idNumber  varchar(20) default null
  7. remark varchar2(20)  
  8. ); 
  9. create unique index base_index on testbase(basename);--为表创建一个唯一的索引 
  10. create index code_index on testbase(basecode);--为basecode的索引 
  11. create sequence seq_base start with 1;--创建一个开始和增值为1的序列 
  12. --alter table testbase  add constraint PK_testbase  primary key (id);添加一个主键约束 
  13. --这里就不添加表空间约束....后再学习加强