从逻辑上讲,在 SQL 中,我们可以使用 JOINS 从表中删除数据,例如
DELETE clb_subscriber_group_mapping .* FROM clb_subscriber_group_mapping
INNER JOIN clb_driver_group ON (clb_driver_group.id = clb_subscriber_group_mapping.driver_group_id)
INNER JOIN clb_company ON (clb_company.id = clb_driver_group.company_id)
WHERE clb_company.id = 256 AND clb_subscriber_group_mapping.subscriber_id = 1784;
与上述查询等效的 CodeIgniter 是什么?
CodeIgniter 是否支持带连接的删除查询?