56,940
社区成员




EXPLAIN EXTENDED SELECT title.id,title.title,title.hit,title.rep,title.redate FROM bbstitle title,userpost upost WHERE upost.id=title.id
id select_type table type possible_keys key key_len ref rows filtered Extra
------ ----------- ------ ------ ------------- ------- ------- ------------- ------ -------- -----------
1 SIMPLE upost index id id 5 (NULL) 10 100.00 Using index
1 SIMPLE title eq_ref PRIMARY PRIMARY 4 agri.upost.id 1 100.00
id select_type table type possible_keys key key_len ref rows Extra
------ ----------- ------ ------ --------------- ------ ------- ------ ------ -------------------------------
1 SIMPLE title ALL PRIMARY,user_id (NULL) (NULL) (NULL) 62589 Using temporary; Using filesort
1 SIMPLE menu ALL user_id,pid (NULL) (NULL) (NULL) 36 Using where; Using join buffer
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
------- ---------- -------- ------------ ----------- --------- ----------- -------- ------ ------ ---------- -------
bbsmenu 1 user_id 1 user_id A (NULL) (NULL) (NULL) YES BTREE
bbsmenu 1 pid 1 pid A (NULL) (NULL) (NULL) YES BTREE
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
-------- ---------- --------- ------------ ----------- --------- ----------- -------- ------ ------ ---------- -------
bbstitle 0 PRIMARY 1 id A 68459 (NULL) (NULL) BTREE
bbstitle 1 BoardID_2 1 BoardID_2 A (NULL) 333 (NULL) YES BTREE
bbstitle 1 titleType 1 titleType A (NULL) (NULL) (NULL) YES BTREE
bbstitle 1 deleted 1 deleted A (NULL) (NULL) (NULL) YES BTREE
bbstitle 1 BoardID_1 1 BoardID_1 A (NULL) 333 (NULL) YES BTREE
bbstitle 1 user_id 1 user_id A (NULL) 333 (NULL) YES BTREE
id select_type table type possible_keys key key_len ref rows Extra
------ ----------- ------ ------ --------------- ------ ------- ------ ------ -------------------------------
1 SIMPLE title ALL PRIMARY,user_id (NULL) (NULL) (NULL) 39317 Using temporary; Using filesort
1 SIMPLE menu ALL user_id,pid (NULL) (NULL) (NULL) 36 Using where; Using join buffer
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
------- ---------- -------- ------------ ----------- --------- ----------- -------- ------ ------ ---------- -------
bbsmenu 1 user_id 1 user_id A (NULL) (NULL) (NULL) YES BTREE
bbsmenu 1 pid 1 pid A (NULL) (NULL) (NULL) YES BTREE
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
-------- ---------- --------- ------------ ----------- --------- ----------- -------- ------ ------ ---------- -------
bbstitle 0 PRIMARY 1 id A 47539 (NULL) (NULL) BTREE
bbstitle 1 BoardID_2 1 BoardID_2 A (NULL) 333 (NULL) YES BTREE
bbstitle 1 titleType 1 titleType A (NULL) (NULL) (NULL) YES BTREE
bbstitle 1 deleted 1 deleted A (NULL) (NULL) (NULL) YES BTREE
bbstitle 1 BoardID_1 1 BoardID_1 A (NULL) 333 (NULL) YES BTREE
bbstitle 1 user_id 1 user_id A (NULL) 333 (NULL) YES BTREE