删除数据

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

注意:deletes() 方法要配合查询条件

$model = Loader::model(UserDao::class);
$model->delete(100);
//删除多条
$model->where("id", ">", 100)->deletes();
Copyright © HerosPHP 2016 all right reserved,powered by Gitbook最后更新时间: 2017-08-07 22:07:21

results matching ""

    No results matching ""