我有以下“活动记录”设置:
$this->db->select('*');
$this->db->from('Orders');
$this->db->join('MPC_Agents', 'Orders.UserName = MPC_Agents.UserName', 'inner');
$this->db->limit(50,20);
$query = $this->db->get();
使用$this->db->last_query();
mereley 输出:
SELECT * FROM (Orders) INNER JOIN MPC_Agents ON Orders.UserName = MPC_Agents.UserName
为什么不应用限制?