thinkphp8教程打印最后一条执行sql语句代码
语法:Db::getLastSql();
public function get()
$user = Db: :table( table: "user")->select();
$user = Db: :table("user")->where("id",1)->find();
return Db::getLastSql();
// return json($user);
}
thinkphp8教程打印最后一条执行sql语句代码
语法:Db::getLastSql();
public function get()
$user = Db: :table( table: "user")->select();
$user = Db: :table("user")->where("id",1)->find();
return Db::getLastSql();
// return json($user);
}
金黑网络 Thinkphp教程 thinkphp8教程打印最后一条执行sql语句代码 https://www.jinhei.com/289.html