增加,删除,修改,查看。操作

原创2019-06-06 16:52:4991
摘要:<?phpclass Hubby{public function delete(){$num = Db::table('staff')->delete(19);$num = Db::table('staff')->delete([12,13,17]);$num = Db::table('staff')->where('

<?php

class Hubby

{

public function delete()

{

$num = Db::table('staff')->delete(19);

$num = Db::table('staff')->delete([12,13,17]);

$num = Db::table('staff')

->where('salary','>','10000')

->delete();

$num = Db::table('staff')->delete(true);

return $num ? '删除成功' .$num. '条记录~~'

}

}


批改老师:查无此人批改时间:2019-06-10 09:14:33
老师总结:完成的不错。pdo操作速度比之前的mysqli快很多。继续加油

发布手记

热门词条