语法
Db::table(表名)->where(条件)->select();
示例
$map['id'] = ['>',1]; $map['mail'] = ['like','%thinkphp@qq.com%']; Db::table('think_user')->where($map)->select();
转载于:https://blog.51cto.com/suyanzhu/1896469
语法
Db::table(表名)->where(条件)->select();
示例
$map['id'] = ['>',1]; $map['mail'] = ['like','%thinkphp@qq.com%']; Db::table('think_user')->where($map)->select();
转载于:https://blog.51cto.com/suyanzhu/1896469