# mySQL WHERE ... IN ( .. )

**URL:** <https://forum.kirupa.com/t/mysql-where-in/203732>\
**Category:** Uncategorized\
**Created:** [October 13, 2006, 3:16pm UTC](https://forum.kirupa.com/t/mysql-where-in/203732 "2006-10-13T15:16:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![StarXploser](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/starxploser/32/875_2.png) [@StarXploser](https://forum.kirupa.com/u/StarXploser)\
**Post date:** [October 13, 2006, 3:16pm UTC](https://forum.kirupa.com/t/mysql-where-in/203732/1 "2006-10-13T15:16:45Z")

</div>

Hello,  
I’m trying to do a subquery using WHERE IN, but i can’t get mysql to recognize any Index. I’ve tried FORCE/USE INDEX(package) but it doesn’t use it

I have a simple index on package.  
this is the EXPLAIN statement

EXPLAIN SELECT \*  
FROM `class_compjar`  
WHERE package  
IN ( 1, 2, 3 )

id select\_type table type possible\_keys key key\_len ref rows Extra  
1 SIMPLE class\_compjar ALL package NULL NULL NULL 23621 Using where
