测试了几次情况是这样的:
1、打印出来语句可执行
2、删除where里面的链接条件时TP可执行
打印出来语句如下:
SELECT `id`,`name`,`coverimage`,`desc
方法封装入下:
function getCatVideo($id,$limit){
$catVideo = $this->field("id,name,coverimage,desc
->where("type like '%$id%' and db_video_cat.isopen='1'")
->limit($limit)
->select();
echo $this->getLastSql();
return $catVideo;
}
为什么会数据丢失呢??求解答,我用的TP好像是3.1.3在这个版本中为什么会产生这种问题
最佳答案