查询语言.distinct

函数原型

  1. public function distinct($bFlag = true);

用法如下

  1. # SELECT DISTINCT `test`.* FROM `test`
  2. Db::table('test')->
  3. distinct()->
  4. getAll();

OR

  1. # SELECT `test`.* FROM `test`
  2. Db::table('test')->
  3. distinct()->
  4. distinct(false)->
  5. getAll();