SQL - CREATE / DROP INDEX 文


■内容

Top

■CREATE INDEX 文の基本

Top
■例題
  1. 顧客表(customer)の顧客名列(cust_name)に索引cust_name_indexをつけます。
    => CREATE INDEX cust_name_index ON customer (cust_name)
       ;
    DB20000I  SQL コマンドが正常に終了しました。
    
    
Top

■DROP INDEX 文の基本

Top
■例題
  1. 顧客表(customer)の索引cust_name_indexを削除します。
    DROP INDEX cust_name_index
    
    結果
    DROP INDEX
    
Top

■構文

Top

inserted by FC2 system