use/think/Db;
//插入记录
$result = Db::execute('insert into ');
//更新记录
$result = Db::execute(' update ');
//查询数据
$result = Db::query('select ');
//删除数据
$result = Db::execute('delete ');
use/think/Db;
//插入记录
$result = Db::execute('insert into ');
//更新记录
$result = Db::execute(' update ');
//查询数据
$result = Db::query('select ');
//删除数据
$result = Db::execute('delete ');
本文标题:tp5执行原生sql语句
本文链接:https://www.haomeiwen.com/subject/lkzhvhtx.html
网友评论