2017-11-25 4 views

答えて

0

私はこれがあなた

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 

ノート役立つことを願って、この

$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(); 

てみてください。いけませんのすべての列を選択するには「*」を使用してください。個別の列名を使用して取得してください。

関連する問題