- 论坛徽章:
- 1
|
- mysql> explain select count(*) from showdata a ,t_prehandle_qeesoo_visit_02 as b where a.guid=b.guid and a.addtime > '2009-02-25' \G;
- *************************** 1. row ***************************
- id: 1
- select_type: SIMPLE
- table: b
- type: index
- possible_keys: NULL
- key: PRIMARY
- key_len: 8
- ref: NULL
- rows: 157796
- Extra:
- *************************** 2. row ***************************
- id: 1
- select_type: SIMPLE
- table: a
- type: ref
- possible_keys: addtime,guid
- key: guid
- key_len: 453
- ref: qeesoo_bi.b.guid
- rows: 35
- Extra: Using where
- 2 rows in set (0.01 sec)
- ERROR:
- No query specified
- mysql> explain select count(*) from showdata a ,t_prehandle_qeesoo_visit_02 as b where a.addtime > '2009-02-25' and a.guid=b.guid \G;
- *************************** 1. row ***************************
- id: 1
- select_type: SIMPLE
- table: b
- type: index
- possible_keys: NULL
- key: PRIMARY
- key_len: 8
- ref: NULL
- rows: 157796
- Extra:
- *************************** 2. row ***************************
- id: 1
- select_type: SIMPLE
- table: a
- type: ref
- possible_keys: addtime,guid
- key: guid
- key_len: 453
- ref: qeesoo_bi.b.guid
- rows: 35
- Extra: Using where
- 2 rows in set (0.00 sec)
- ERROR:
- No query specified
- mysql>
复制代码 mysql从走的索引来看一样的,oracle是的。
[ 本帖最后由 枫影谁用了 于 2009-2-27 17:00 编辑 ] |
|