2017-11-25 266 views

回答

0

请尽量将

$this->db->select('*'); 
$this->db->from('tableE'); 
$this->db->join('tableD','tableD.protocol=tableE.protocol and tableD.port=tableE.s_port','left'); 
$query = $this->db->get(); 
return $query->result(); 

我希望这可以帮助你

0
$this->db->select("*") 
     ->join("MGMETADATA.services as d","d.protocol = e.protocol","left") 
     ->where("d.port = e.s_port") 
     ->get("tablename e") 
     ->result(); //for json format 

注:不要使用“*”选择所有列,请使用单个列名进行检索。