删除数据

  • public function delete($id); //删除单条数据
  • public function deletes($conditions); //删除多条数据

$conditions 是指 查询条件

$model = Loader::model('User');
$model->delete(100);
//删除多条
$model->deletes(array('id' => '>100'));
Copyright © HerosPHP 2016 all right reserved,powered by Gitbook最后更新时间: 2016-09-05 21:19:17

results matching ""

    No results matching ""