yii 关联查询 left join [ 新手入门 ]
select * from manhua left join [b](select id as qid,manhuaid,addtime as qaddtime from quick_promoted where typeid=0) [/b]as quick_type on manhua.id=quick_type.manhuaid
$criteria->join = "left JOIN quick_promoted on t.id=quick_promoted.manhuaid ";
请问 yii 如何 将加粗部分 加入 进来 做连接查询
共 0 条回复
没有找到数据。
sjedufei 火星
注册时间:2012-08-13
最后登录:2016-04-12
在线时长:1小时52分
最后登录:2016-04-12
在线时长:1小时52分
- 粉丝0
- 金钱80
- 威望0
- 积分90