$result = $this->dbl
->alias('a')
->join('aipu_member_binds b','a.uid = b.uid','LEFT')
->where($map)
->order($order)
->find();
echo $this->dbl
print_r($result);exit;
生成的sql语句如下:
SELECT
*
FROM
`aipu_task_seller` `a`
LEFT JOIN `aipu_member_binds` `b` ON `a`.`uid` = `b`.`uid`
WHERE
`b`.`account` = '壹道壹'
ORDER BY
`sid` DESC
LIMIT 1
查询到的数据如下:

数据库明明可以查询到数据,为什么打印却是空的?
QQ图片20170328114430.png
( 80.63 KB 下载:26 次 )
最佳答案