2009年5月2日土曜日

MySQLにインデックス作成

create index インデックス名 on テーブル名 (フィールド名);

MySQLにrootでログイン

mysql -u root -p
パス入力
use データベース名;