标签:connect 执行 dep 打印 print elf sql code log
DB::connection()->enableQueryLog();#开启执行日志 $a = self::where([‘investorid‘=>$id])->whereBetween(‘inserttime‘,[$start,$end])->where(‘deposit‘,‘>‘,0)->orderBy(‘id‘,‘asc‘)->Paginate(20); print_r(DB::getQueryLog()); //获取查询语句、参数和执行时间
标签:connect 执行 dep 打印 print elf sql code log
原文地址:https://www.cnblogs.com/fanhuo/p/9390169.html