delete() destroy()删除数据的区别---ThinkPHP5(TP5)对数据库操作总结
1.删除delete()destroy()T::where('id=1')->delete(1);T::where('id','in',[2,3])->delete();T::destroy('4,5');Db::table('t')->delete(6);Db::table('t')->delete([7,8]);删除返回值:delete()返回删除的条数,若一条没有删除则返回值为零destro