欢迎光临
感谢一路有你

tp3.2多表联查

如果你对该文章中的内容有疑问/不解,可以点击此处链接提问
要注明问题和此文章链接地址 点击此处跳转
 

table方法

$Model = new \Think\Model();
$list = $Model->table('shopping_coupon AS c,shopping_user_coupon AS uc')->where('c.id = uc.coupon_id')->select();

更多方法参考:http://www.thinkphp.cn/topic/44761.html

 

赞(0) 打赏
未经允许不得转载:王明昌博客 » tp3.2多表联查
分享到: 更多 (0)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏