首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Mysql >

联接mysql和 建索引花费

2012-07-03 
连接mysql和 建索引花费mysql -h192.168.0.150 -uroot -p??新建索引:create index indexName on table(col

连接mysql和 建索引花费

mysql -h192.168.0.150 -uroot -p

?

?

新建索引:

create index indexName on table(columnName)

?

显示建表语句:

SHOW CREATE TABLE table_name

?

mysql 索引花费时间:

mysql> select count(*) from dac_traffic_channel_day_201202;
+----------+
| count(*) |
+----------+
|? 1378899 |
+----------+
1 row in set (12.11 sec)

?

mysql> create index index_id on dac_traffic_channel_day_201202(id);
Query OK, 0 rows affected (22.07 sec)
Records: 0? Duplicates: 0? Warnings: 0

热点排行