CREATE INDEX emp_order_ind
   ON order_emp (orderID, employeeID)要学会看帮助,别人讲得都不会比帮助好

解决方案 »

  1.   

    CREATE [ UNIQUE ] [ CLUSTERED | NONCLUSTERED ] INDEX index_name
        ON { table | view } ( column [ ASC | DESC ] [ ,...n ] ) 
      

  2.   

    create index 索引名 on 表名(列名 asc/desc)
    这是最简单的索引
      

  3.   

    A. 使用简单索引
    下面的示例为 authors 表的 au_id 列创建索引。USE pubs
    CREATE INDEX au_id_ind
       ON authors (au_id)
    GO