TP打印输出SQL语句
时间:2021-07-01 10:21:17
帮助过:6人阅读
TP打印SQL语句
$data =
$this->field(
$field)->where(
$condition)->
select();
echo $this->getLastSql();
//输出 SELECT `id`,`title`,materialUrl as outerUrl,image as img,`type`,`sort`,`status`,`source` FROM `ims_push` WHERE `type` = 2
return $data ?
$data->toArray() : [];
TP打印输出SQL语句
标签:url select style span 语句 source nbsp ast img