@Banana
2017-08-01 03:18
采纳率: 33.3%
浏览 703
已采纳

thinkPHP查询求大神帮忙

select d.*,(select count(*) from cmf_course_major where did=d.id) as major_count,(select count(*) from cmf_course_category where did=d.id) as category_count from cmf_course_department这样的查询语句怎么改成Thinkphp那种封装的查询

1条回答 默认 最新

相关推荐 更多相似问题