|
发表于 2016-8-2 18:34:14
|
显示全部楼层
PHP复制代码
$this->db->select('aid, atitle, acontent, adel, astyle, anode, bname, cname')
->join(tableB , bid = astyle , 'left')
->join(tableC , cid = anode , 'left')
->get_where(tableA , array('adel' => 0, 'cdel' => 0))
->result_array();
复制代码 |
|