表格是上面张,输出了每个prod_id的前两个最小的quantity,下面这段代码看不懂,尤其是where里面<=2那一段,求大神解答 mysql> select prod_id,quantity -> from orderitems -> where -> ( select count(*) from orderitems a -> where a.prod_id=orderitems.prod_id -> and a.quantity<=orderitems.quantity)<=2 -> orde...