可以这样:
select * from 购物信息 where 购物人 in
(select 购物人 from 购物信息 group by 购物人 having count(*) >= 2);
说明:用了一个子查询,表名及字段名请再核实。
如果对您有帮助,请采纳答案好吗,谢谢!
select * from t_OrderInfo where fUserCode in (select fUserCode from t_OrderInfo group by fUserCode having count(fUserCode) >= 2);