求教各位大牛,tp的LEFT JOIN试了好多次都不妥。

浏览:1829 发布日期:2014/03/06 分类:求助交流
如题。求各位帮忙看看哪里错了。

$Car_wash_result=M('auto_maintain_result');

$Car_wash_order = M('auto_maintain_order');

$op=$Car_wash_result->join('tp_auto_maintain_order on tp_auto_maintain_result.order_id = $tp_auto_maintain_order._id')->select();


2张表的前缀都是tp_

order_id是result表的;
id是order表的;
现在想要让他们俩成外键的形式。

试过n种组合都是报错。


最佳答案
评论( 相关
后面还有条评论,点击查看>>