说明
原生SQL操作-写入
示例
Db::execute(‘insert into think_user (id, name) values (?, ?)‘,[8,‘thinkphp‘]);
占位符
Db::execute(‘insert into think_user (id, name) values (:id, :name)‘,[‘id‘=>8,‘name‘=>‘thinkphp‘]);
本文出自 “素颜” 博客,请务必保留此出处http://suyanzhu.blog.51cto.com/8050189/1896662
原文地址:http://suyanzhu.blog.51cto.com/8050189/1896662