如何查一个订单下面相同商品大于等于2的订单明细

code1 是订单维度 code2 是订单明细维度 select   *   from tablegroup by code1,code2   having

code1 是订单维度

code2 是订单明细维度

select   *   from tablegroup by

code1,code2   having count(code2 )>1