-- 创建订单表订单状态、支付时间、店铺ID索引 用于查询按店铺分组的订单状态、支付时间的统计信息 CREATE INDEX idx_status_pay_time_shop ON tb_order(status, pay_time, shop_id);