Re: Subqueries in NDB cluster
Hi ,
Following is a expain resposne for a sub query in my system.
mysql> EXPLAIN select * from LAP_RULES where ( RC_RULE_CODE='MULTIPLE' ) and RLS_RULE_ID in ( select RLS_PARENT_RULE_ID from LAP_RULES where ( RLS_STATUS='EXECUTED' or RLS_STATUS='PENDING_EXECUTION' ) );
+----+--------------------+-----------+------+---------------+---------------+---------+-------+------+-------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+----+--------------------+-----------+------+---------------+---------------+---------+-------+------+-------------+
| 1 | PRIMARY | LAP_RULES | ref | RULE_CODE_IND | RULE_CODE_IND | 12 | const | 10 | Using where |
| 2 | DEPENDENT SUBQUERY | LAP_RULES | ALL | NULL | NULL | NULL | NULL | 123 | Using where |
+----+--------------------+-----------+------+---------------+---------------+---------+-------+------+-------------+
2 rows in set (0.02 sec)
thanks,
Subject
Views
Written By
Posted
2391
March 17, 2006 09:16AM
1349
March 17, 2006 05:15PM
Re: Subqueries in NDB cluster
1770
March 25, 2006 08:24PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.