Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1954

Select [...] In (Select [...]) (2 replies)

$
0
0
Hi,

I wrote this statment:

Select Code, Field1, Field2, [...] from MyTable
Where code in (select code from anothertable where code2 like '%Something%')

where code is primary key for MyTable.

The second select needs about 0.007 seconds (25 rows found). The whole statment needs 213.690 sec.

Why?

Viewing all articles
Browse latest Browse all 1954

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>