dump($query->getBindings());
dump($query->toSql());
// $sql = $query->toSql();
$tmp = str_replace('?', '"'.'%s'.'"', $query->toSql());
$tmp = vsprintf($tmp, $query->getBindings());
echo $tmp;
exit;
本文来自博客园,作者:孙龙-程序员,转载请注明原文链接:https://www.cnblogs.com/sunlong88/articles/10937547.html