我試試這個代碼如何從不同的表格(字段x)中選擇所有字段?笨
function catstore($id)
{
$this->db->distinct();
$this->db->select('store_id');
$this->db->from('products');
//$this->db->join('products','products.store_id = products.store_id');
$this->db->where('cat_id', $id);
$result = $this->db->get();
return $result->result();
}
它只產生不同STORE_ID,但我想用基於STORE_ID不同行的表的所有列
推薦我的任何選項提前
謝謝
無法正常工作..... – 2012-08-09 12:45:00