多个数据表关联的问题求教

浏览:428 发布日期:2014/09/18 分类:求助交流
我想通过user表里的fxs_store字段获取到shop表里面的shopname字段数据。大家帮忙看看是哪里错了,打印空白$list  = $Form->Table('hfx_user w')->join('(select * from f_shop ) t ON w.fxs_store=t.shopid')->where($map)->field('w.id,w.fxs_store,w.username,t.shopid,t.shopname,IFNULL(t.createtime,desc)')->limit($Page->firstRow. ',' . $Page->listRows)->order('createtime desc')->select();
最佳答案
评论( 相关
后面还有条评论,点击查看>>