likun_li
@Banana
2017-08-01 03:18

thinkPHP查询求大神帮忙

  • as
  • select
  • php

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条回答