比如说我现在有一张表  a 中 要以cid为索引 
  请问我怎么创建 cid 的索引?

解决方案 »

  1.   

    create index index_name on a(cid);
      

  2.   

    create index indexName on a(cid);
      

  3.   

    create [unique] index index_name on a(cid) [tablespace index_tbspace];
    unique有时表示是唯一索引。index_name索引名。 tablespace不指定时为用户表空间。
      

  4.   

    CREATE INDEX idx1_A ON A(cid) NOLOGGING;
      

  5.   

    用toad之类的工具更方便,不用记命令