标签:cal 查询 rom 语句 oca pid his sql sql语句
方法一:$this->db->query("sql 语句"); 直接写sql语句
方法二:
#多表关联查询
$data=$this->db->from(‘goods‘)
->join(‘shop‘,‘shop.shopid=goods.shopid‘)
->join(‘category‘,‘category.cid=goods.cid‘)
->join(‘locality‘,‘locality.lid=goods.lid‘)
->get()->result_array();
return $data;
标签:cal 查询 rom 语句 oca pid his sql sql语句
原文地址:http://www.cnblogs.com/peng-jun/p/6699620.html