### 整表查詢
~~~
$query = $this->db->get('mytables');
~~~
#### 查詢指定的記錄
~~~
$query = $this->db->get('mytables',10,20 );
~~~
> 查找出從第20條記錄開始的10條記錄
### 查詢結果的處理
~~~
$query = $this->db->get('mytables');
foreach($query->result_array() as $row ) {
echo $row['name'];
}
~~~
### 條件查詢
~~~
$query = $this->db->get_where('mytables', array('id' => 1));
~~~
### 設置返回的字段
~~~
$this->db->select('name', 'title');
~~~
### 字段的分組與統計
~~~
$this->db->select_max('age', 'number_max');
~~~
> 參數一表示數據表里面的字段 參數二表示生成的字段名稱