志在指尖
用双手敲打未来

tp3.2 tp5.0 tp5.1中where not in 写法

wherenotin
tp3.2.3
M(‘table’)->where([‘id’=>id])->where([‘field’=>[‘notin’,$where]])->delete();
tp5.0
Db::name(‘table’)->where(‘id’,$id)->where(‘field’,’notin’,$where)->delete();
Db::name(‘table’)->where(‘id’,$id)->whereNotIn(‘field’,$where)->delete();
tp5.1
Db::name(‘table’)->where(‘id’,$id)->where(‘field’,’notin’,$where)->delete();
Db::name(‘table’)->where(‘id’,$id)->whereNotIn(‘field’,$where)->delete();

未经允许不得转载:IT技术网站 » tp3.2 tp5.0 tp5.1中where not in 写法
分享到: 更多 (0)

评论 抢沙发

评论前必须登录!

 

志在指尖 用双手敲打未来

登录/注册IT技术大全

热门IT技术

C#基础入门   SQL server数据库   系统SEO学习教程   WordPress小技巧   WordPress插件   脚本与源码下载