限时免费试用:欢迎注册 api.bigmodel.org ,快速体验大模型 API 接入服务。
当前位置:首页 >疑难片段

tp3.2多表联查

分类:疑难片段时间:2018-01-25浏览:2728

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/500
Share your thoughts respectfully.