说明
运行原生SQL查询
示例
Db::query(‘select * from think_user where id=?‘,[8]);
占位符
Db::query(‘select * from think_user where id=:id‘,[‘id‘=>8]);
时间: 2024-10-23 22:03:27
说明
运行原生SQL查询
示例
Db::query(‘select * from think_user where id=?‘,[8]);
占位符
Db::query(‘select * from think_user where id=:id‘,[‘id‘=>8]);