SELECT * FROM customers WHERE id IN ( SELECT DISTINCT customer_id FROM orders );
以上将为您提供系统中已下订单的所有客户。