限时免费试用:欢迎注册 api.bigmodel.org ,快速体验大模型 API 接入服务。

疑难片段

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

作者
王明昌
发布时间

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
友善分享您的看法。
反馈邮箱