查询语言.reset

函数原型

  1. public function reset($sOption = null);

用法如下

  1. # SELECT `newtable`.* FROM `newtable` WHERE `newtable`.`new` = 'world'
  2. Db::table('test')->
  3. where('id', '=', 5)->
  4. where('name', 'like', 'me')->
  5. reset()->
  6. table('newtable')->
  7. where('new', '=', 'world')->
  8. getAll();
  9. # SELECT `test`.* FROM `test` WHERE `test`.`new` LIKE 'new'
  10. Db::table('test')->
  11. where('id', '=', 5)->
  12. where('name', 'like', 'me')->
  13. setColumns('name,id')->
  14. reset('where')->
  15. where('new', 'like', 'new')->
  16. getAll();