company company_to_attributes
===================== ============================
| id_company | name id_attributes | id_company
===================== ============================
| 1 | Test | 1 | 1
| 2 | Test 2 | 2 | 1
| 3 | Test 3 | 3 | 1
| 4 | Test 4 | 4 | 3
| .. | ... | .. | ...
===================== ============================
我有一个简单的数组:
$array_attributes_IDS = array(1,2);
我想写一个查询来从数组中获取具有 id_attribute 的公司。