thinkphp 关联模型只有副表关联主表查询
thinkphp里主project主表字段(id,name),副表project_sub字段(id,project_id,title),project_sub表的proj...
thinkphp 里主project主表字段(id,name),副表project_sub字段(id,project_id,title),project_sub表的project_id保存的是project表的值,请问我在主表project循环的时候,怎样查询出project_sub的值呢?
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询