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 本站文章如未注明出处均为原创,转载请注明出处,如有侵权请邮件联系站长。
$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