Hi Friends,
i have some Problems with no index Select * order by
Sample1
SELECT userid, username, birthday FROM bb2_users WHERE birthday LIKE '%-12-15' ORDER BY username ASC;
Explain
EXPLAIN SELECT userid, username, birthday FROM bb2_users WHERE birthday LIKE '%-12-15' ORDER BY username ASC;
RESULT
id select_type table type possible_keys key key_len ref rows Extra1 SIMPLE bb2_users ALL NULL NULL NULL NULL 8039 Using where; Using filesort
LOG
# User@Host: TEST @ localhost []# Query_time: 0.016334 Lock_time: 0.000026 Rows_sent: 5 Rows_examined: 8038SET timestamp=1260872528;SELECT userid, username, birthday FROM bb2_users WHERE birthday LIKE '%-12-15' ORDER BY username ASC;
Index set to table birthday and username
Can you help me, I have other questions
i have some Problems with no index Select * order by
Sample1
SELECT userid, username, birthday FROM bb2_users WHERE birthday LIKE '%-12-15' ORDER BY username ASC;
Explain
EXPLAIN SELECT userid, username, birthday FROM bb2_users WHERE birthday LIKE '%-12-15' ORDER BY username ASC;
RESULT
id select_type table type possible_keys key key_len ref rows Extra1 SIMPLE bb2_users ALL NULL NULL NULL NULL 8039 Using where; Using filesort
LOG
# User@Host: TEST @ localhost []# Query_time: 0.016334 Lock_time: 0.000026 Rows_sent: 5 Rows_examined: 8038SET timestamp=1260872528;SELECT userid, username, birthday FROM bb2_users WHERE birthday LIKE '%-12-15' ORDER BY username ASC;
Index set to table birthday and username
Can you help me, I have other questions
Comment