Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mysql> EXPLAIN SELECT distinct(vendorid) FROM products where pid in(select pid from orders_content WHERE oid='663');
- +----+--------------------+----------------+------+---------------+------+---------+-------+------+------------------------------+
- | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
- +----+--------------------+----------------+------+---------------+------+---------+-------+------+------------------------------+
- | 1 | PRIMARY | products | ALL | NULL | NULL | NULL | NULL | 9219 | Using where; Using temporary |
- | 2 | DEPENDENT SUBQUERY | orders_content | ref | oid,pid | oid | 4 | const | 1 | Using where |
- +----+--------------------+----------------+------+---------------+------+---------+-------+------+------------------------------+
- 2 rows in set (0.00 sec)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement