多表查询求助

浏览:468 发布日期:2014/05/28 分类:求助交流 关键字: 多表查询
$model->query("select * from mr_goods as go left join mr_category_extend as ce on go.id = ce.goods_id left join mr_category as ca on ce.category_id = ca.id left join mr_service as se on se.id = go.service_id where go.name like '%".$word."%' and ca.name like '%".$type."%' and se.S_scope1 like '%".$code."%' and se.S_scope3 like '%".$area."%'");

这个语句在navicat里赋上相同的值就能查到 在thinkphp里面就查不到
为什么呢
最佳答案
评论( 相关
后面还有条评论,点击查看>>