orderfood
orderfood_id food_id total_amount
foodcancel
foodcancel_id food_id status
$query = $this->db->query("SELECT * FROM order_food of LEFT JOIN `foodcancel` fc ON of.food_id = fc.food_id WHERE of.orderfood_id = '" . (int)$orderfood_id . "'");
$order_foods = $query->rows;
上面是我的查询,我想要的是,如果 foodcancel 表中有 food_id ,将其从行中排除,可以这样做吗?
MMTTMM
慕运维8079593